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

Underline all categories except the last one

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-30-2006, 01:27 PM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default Underline all categories except the last one

I want to add a line divider between categories, but when I do it adds the line below the last category as well. How could I tell it not to put it under that one?
__________________
~ Andrea Beight
Reply With Quote
  #2  
Old 01-30-2006, 02:31 PM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

Andrea,

If your category loop is similar you can do something like this:
Code:
{section name=cat_num loop=$categories} {$categories[cat_num].category} {if !%cat_num.last%} put your underline code here {/if} {/section}
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #3  
Old 01-30-2006, 06:19 PM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default

Thank you so much, I'll give that a try.
__________________
~ Andrea Beight
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 07:45 AM.

   

 
X-Cart forums © 2001-2020