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

Unique class for a left bar category link

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-18-2013, 04:38 AM
 
Martin Bishop Martin Bishop is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default 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
__________________
4.4.3
Reply With Quote
  #2  
Old 02-19-2013, 03:40 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Unique class for a left bar category link

Like {if $catid eq 99} class="unique"{/if} ?
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote

The following user thanks cherie for this useful post:
Martin Bishop (02-21-2013)
  #3  
Old 02-21-2013, 01:59 AM
 
Martin Bishop Martin Bishop is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default 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.
__________________
4.4.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:37 PM.

   

 
X-Cart forums © 2001-2020