X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Underline all categories except the last one (https://forum.x-cart.com/showthread.php?t=19606)

abeight 01-30-2006 01:27 PM

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?

hooter 01-30-2006 02:31 PM

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}


abeight 01-30-2006 06:19 PM

Thank you so much, I'll give that a try.


All times are GMT -8. The time now is 07:38 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.