Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

How can I add a new page to Help?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-14-2008, 09:30 AM
 
shangara singh shangara singh is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 38
 

Default How can I add a new page to Help?

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.
__________________
-------------------------
Shangara Singh
www.Examaids.com
X-Cart: Version 4.1.10
Reply With Quote
  #2  
Old 02-14-2008, 04:03 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default Re: How can I add a new page to Help?

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.
Reply With Quote
  #3  
Old 02-14-2008, 10:56 PM
 
shangara singh shangara singh is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 38
 

Default Re: How can I add a new page to Help?

Thanks, Dongan, for the suggestion. I wanted to use the WYSIWYG editor in languages. Would you, or someone, mind finishing the "if...then" statement?
__________________
-------------------------
Shangara Singh
www.Examaids.com
X-Cart: Version 4.1.10
Reply With Quote
  #4  
Old 02-14-2008, 11:23 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default Re: How can I add a new page to Help?

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.
Reply With Quote
  #5  
Old 02-14-2008, 11:53 PM
 
shangara singh shangara singh is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 38
 

Default Re: How can I add a new page to Help?

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?
__________________
-------------------------
Shangara Singh
www.Examaids.com
X-Cart: Version 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:21 AM.

   

 
X-Cart forums © 2001-2020