![]() |
Re: Highlight current page in speedbar
{if $current_category.categoryid eq "xxx" || $current_category.parentid eq "xxx"} class="current"{/if}
Not sure on top of my head if it's "parent", "parentid", or "paren_category" |
Re: Highlight current page in speedbar
Thanks, again Steve. This was extremely helpful, is there any way this to be done for the sub-sub categories without writing a whole bunch of numbers?
Take a look |
Re: Highlight current page in speedbar
Not sure but there is probably a way
|
Re: Highlight current page in speedbar
{if $current_category.categoryid_path|regex_replace:" /\/[0-9\/]*/":""}class="current"{/if}
This should work |
Re: Highlight current page in speedbar
Thanks Ash, where to put the category ID?
|
Re: Highlight current page in speedbar
{if $current_category.categoryid_path|regex_replace:" /\/[0-9\/]*/":"" eq "259"}class="current"{/if}
|
Re: Highlight current page in speedbar
Thaht did a perfect job. Ash, you are awesome. You and Steve, figured out the whole thing for me. Thanks guys! :)
|
Re: Highlight current page in speedbar
no problem, glad I could help.
|
Re: Highlight current page in speedbar
I want to remove the link on the tab, when same page is being viewed. So I made this change to skin1/customer/head.tpl . This is in 4.2.x
Quote:
And then you can change the color of .current class as you wish |
Re: Highlight current page in speedbar
Is there a way of doing this to highlight using the page Id for static pages?
|
All times are GMT -8. The time now is 12:34 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.