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)
-   -   Unique class for a left bar category link (https://forum.x-cart.com/showthread.php?t=66156)

Martin Bishop 02-18-2013 04:38 AM

Unique class for a left bar category link
 
Hi

Just wondering if anyone knows a way I can specify a unique class style for one of the left bar category links? I want to make one of them more prominent (i.e. different spacing and a different colour etc.).

I'm using flyout menus and can see an IF statement that styles and icon (icon-link) when icons are set to show for the category list. Any one know if there's a similar IF statement that can provide a different class for a particular category link? ..... Or something else that could create a new class for that one link?


thanks

cherie 02-19-2013 03:40 PM

Re: Unique class for a left bar category link
 
Like {if $catid eq 99} class="unique"{/if} ?

Martin Bishop 02-21-2013 01:59 AM

Re: Unique class for a left bar category link
 
Thanks for the reply, yep similar to that.

For the sake of a resolved forum post I went for:

{if $c.categoryid eq 286}rep-sub-cat{/if}

in the end which works fine.

This sits within the existing:

<a href="home.php?cat={$catid}" class="{if $config.Flyout_Menus.icons_icons_in_categories gte $level+1}icon-link{/if}{if $config.Flyout_Menus.icons_disable_subcat_triangle eq 'Y' and $c.subcategory_count gt 0} sub-link{/if}{if $config.Flyout_Menus.icons_empty_category_vis eq 'Y' and not $c.childs and not $c.product_count} empty-link{/if}{if $config.Flyout_Menus.icons_nowrap_category ne 'Y'} nowrap-link{/if}">

in the flyout menus module template:

/common_files/modules/Flyout_Menus/Icons/fancy_subcategories.tplif images are switched off in flyout menus module configurations.


All times are GMT -8. The time now is 11:16 AM.

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