View Single Post
  #1  
Old 10-31-2007, 12:31 PM
  matthewstroh's Avatar 
matthewstroh matthewstroh is offline
 

Member
  
Join Date: Oct 2007
Location: Portland, OR.
Posts: 16
 

Question Page Specific "If" Statements

I know how to make a .tpl file include (or not) on the Homepage by using a specific {if} statement (see below) and another to include somethign based on the category number (also below). But what are the statements I can make for the other pages? For example, what do I write to get a file to include only on the Contact Us page? In my store I have a .tpl file that displays which days the physical store is open. On the contact page, I'd like to include this file on my Contact Us but not on all the other ancillary pages like the cart, or the news page.

IF STATEMENT TO HIDE CART INFO ON HOMEPAGE
{if $main ne "catalog" OR ($main eq "catalog" and $current_category.category ne "")}
{include file="customer/menu_cart.tpl"}
{/if}

IF STATEMENT TO SHOW SOMETHING BASED ON CATEGORY
{if $cat eq "211"}Show This{/if}



I'm quite the newbie getting in and configuring my first store. So far so good. This forum is amazing resource!
__________________
Matthew Stroh
Version 4.1.9
Reply With Quote