| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How can I add a new page to Help? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi -- I want to add a new Testimonials page to the Help box and edit it via languages. What I've done is create a new template testimionials.tpl in the Help dir. I opened it and added:
{* $Id: testimonials.tpl,v 1.9 2005/11/21 12:41:58 max Exp $ *} <p /> {capture name=dialog} {$lng.txt_testimonials} {/capture} {include file="dialog.tpl" title=$lng.lbl_testimonials content=$smarty.capture.dialog extra='width="100%"'} I also created a lbl_testimonials and txt_testimonials in languages. I then added following lines to Help.tpl <a href="help.php?section=testimonials" class="VertMenuItems">{$lng.lbl_testimonials}</a><br /> However, when I click the Testimonials link, the Help Zone opens: http://www.examaids.com/e-cart/home.php Help most certainly appreciated. |
|||||||
#2
|
|||||||||
|
|||||||||
![]() you need to write bit more code in include/help.php
as if ($section == 'testimonials') { do this .... } I would suggest to create a static page and give a link.
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks, Dongan, for the suggestion. I wanted to use the WYSIWYG editor in languages. Would you, or someone, mind finishing the "if...then" statement?
|
|||||||
#4
|
|||||||||
|
|||||||||
![]() create a new page called "testimonials.html" under statis pages.
Call this page as pages.php?pageid=x where x is the page id of the static page you create.
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
#5
|
|||||||
|
|||||||
![]() Thanks, Dongan. However, I don't want to create a static page. Is it not possible to create a tpl, populate it via languages and call it via the Help.tpl? If it is, then how?
|
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|