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

If Statement for Index and Category Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-31-2008, 05:09 AM
 
BrighterBlooms1 BrighterBlooms1 is offline
 

Advanced Member
  
Join Date: Feb 2008
Location: Charlotte, NC
Posts: 29
 

Question If Statement for Index and Category Pages

I am trying to make a script show up on my left nav. only on the Index and Category pages. would i use a statement similar to

Code:
{if $main eq "xxxxxxx"}


I currently us CDSEO for my category pages. The all have the directory name CATEGORY in common.

Hope someone out there can help.
__________________
X-cart version 4.6.5
Reply With Quote
  #2  
Old 07-31-2008, 05:30 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: If Statement for Index and Category Pages

Try:

{if $main eq "catalog"}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-31-2008, 06:55 AM
 
BrighterBlooms1 BrighterBlooms1 is offline
 

Advanced Member
  
Join Date: Feb 2008
Location: Charlotte, NC
Posts: 29
 

Default Re: If Statement for Index and Category Pages

Perfect as always. Thanks for your help.
__________________
X-cart version 4.6.5
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 02:43 PM.

   

 
X-Cart forums © 2001-2020