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

Show menu only on home

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

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default Show menu only on home

Right, I know how to show a side menu only just product pages by using the code

Code:
{if $main eq "product" AND "products"} { include file="recently_viewed.tpl"} {/if}

but how do I get a menu item to show ONLY on the home page, i know the code but where do i get the "home" name from??? i.e above is "product" - where are the references to be found???
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #2  
Old 11-11-2004, 12:36 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Code:
{if $main eq "catalog" and $current_category.category eq ""} {include file="recently_viewed.tpl"} {/if}
Reply With Quote
  #3  
Old 11-11-2004, 12:49 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

Thanks i'll give that a try in the morning.

Is there somewhere or a file that lists all the different areas by name like that so next time i know where to look rather than having to ask?
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 05:36 PM.

   

 
X-Cart forums © 2001-2020