View Single Post
  #1  
Old 12-16-2008, 05:52 AM
 
balinor balinor is offline
 

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

Default Calling an additional field as part of the category array

Here's one I can't seem to work out - I created an additional field for categories, sort of like a second category title. I need to use this as a sub-title for the side menu categories. I can successfully get it to display on the category page using {$current_category.subtitle}, but I can't seem to get it to show under the side menu links. Here's the code:

Code:
{foreach from=$categories item=c} <div class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category}</a></div> <div class="CategoriesListSub">{$c.subtitle}</div> {/foreach}

Do I somehow need to specify this additional field in categories.php or am I just missing something obvious from staring at this for hours?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote