View Single Post
  #97  
Old 12-18-2008, 03:25 PM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default if section = FAQ / Terms / Contact etc...

I was looking for a solution to help me add content into a page which would change depending on which section of the help zone i was in.

I found plenty of questions asking for the same solution, but no answers.

I took a few moments out to deduce it myself and here is the solution:

Code:
{if $main eq "help" and $help_section eq "FAQ"} show this {elseif $main eq "help" and $help_section eq "contactus"} show something else {elseif $main eq "help" and $help_section eq "business"} show something different again... {/if}

...and so on.


To determine which areas of the help zone to alter, refer to skin1/help/index.tpl for the various parts of x-cart's help zone.

hope this helps

__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote