View Single Post
  #4  
Old 12-09-2004, 03:17 PM
 
elomibao elomibao is offline
 

Member
  
Join Date: Sep 2004
Posts: 24
 

Default

Quote:
Originally Posted by shan
Code:
{section name=cat_num loop=$categories} <FONT class="CategoriesList">{$categories[cat_num].category} | </FONT> {/section}

use that

The only problem is you get an extra "|" char at the end of the last category. I modified it and added a test:

Code:
{section name=cat_num loop=$categories} <FONT class="CategoriesList">{$categories[cat_num].category}{if not %cat_num.last%} | {/if}</FONT> {/section}
__________________
X-Cart Pro 4.0.5
Fedora Core 2
Apache 2.x/PHP 4.x
MySQL 3.x
Reply With Quote