View Single Post
  #9  
Old 05-11-2010, 09:41 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Highlight current page in speedbar

Quote:
Originally Posted by FTI
Code:
{* $Id: tabs.tpl,v 1.2 2009/04/21 11:42:00 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {if $speed_bar} <div class="tabs"> <ul> {foreach from=$speed_bar item=sb name=tabs} <li{interline name=tabs}><a href="{$sb.link|amp}"{if $current_category.categoryid eq "xxx"} class="current"{/if}>{$sb.title}</a></li> {/foreach} </ul> </div> {/if}

Something like this? How I should apply this for all of the 7 links and I know it sounds stupid but how can I get the category ID Thank you man, you are the one who is helping me since my fist post in this forum. I appreciate it, too bad I can't help you a lot with my poor knowledge...
See above in red. You can get the catid from admin - open categories, point to the category in question - it is in the url or you can export categories and look in the csv file. The foreach loops through all speed bar links and will apply class current to the item only if that item in the loop is matching the if statement
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote