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

Smarty Equation help

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-19-2005, 11:11 AM
 
SilverSiR SilverSiR is offline
 

Newbie
  
Join Date: Sep 2005
Posts: 3
 

Default Smarty Equation help

Hi,

What I need to do is embed something in the html on only help pages. I don't quite understand the syntax and language of Smarty.

I'm guessing something like this,

If selection='help', then add the following, end.
__________________
Version 4.0.13
Reply With Quote
  #2  
Old 09-19-2005, 12:39 PM
  anoack's Avatar 
anoack anoack is offline
 

Senior Member
  
Join Date: Dec 2002
Location: Austin, TX
Posts: 113
 

Default

Quite simple, what you want to do is open up help/index.tpl and just add

Code:
{elseif $section eq "other"} {include file="help/other.tpl"}
Make sure you add this before the {else} tag and after the {if $section eq "Password_Recovery"} tag.

so if some one went to help.php?section=other then it would display other.tpl.

Hope this helps!
__________________
X-Cart: 4.0.13 [Linux]
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 07:29 PM.

   

 
X-Cart forums © 2001-2020