View Single Post
  #1  
Old 08-13-2004, 07:22 AM
  RJC's Avatar 
RJC RJC is offline
 

Advanced Member
  
Join Date: Nov 2003
Posts: 57
 

Default Unique text on category template?

I apologize if this has been addressed before, but I couldn't find anything here on the boards...

Let's say I have a category called Fruit. If I wanted to display a message on that page utilizing the category name, I would add "Look at our wonderful selection of {$current_category.category} on the customer/home.tpl. Obviously, this would appear on all categories, whether they were fruit, cars, books etc.

Now, if under Fruit I have a sub-category "Apples," the problem I am having is that message is displaying there as well, so the message "Look at our wonderful selection of Apples" would print on the sub-category page..which I don't want.

How could I either:

1. Not have this message appear at all on the sub-category's page or

2. Have this line pull the name of the parent category, so it would still say "Fruit" and not "Apples."

Am I putting this line on the wrong template to begin with? I'm new to Smarty (obviously), and am confused as hell!!

I am currently testing version 4.0.2. Thanks in advance!

Rich
Reply With Quote