| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Highlight current page in speedbar | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
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"
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#12
|
|||||||||
|
|||||||||
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
__________________
Version 4.2.3 X-Cart Gold Version 4.3.1 X-Cart Gold |
|||||||||
#13
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
Not sure but there is probably a way
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#14
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
{if $current_category.categoryid_path|regex_replace:" /\/[0-9\/]*/":""}class="current"{/if}
This should work
__________________
xcart 5.1.2 |
|||||||||
#15
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
Thanks Ash, where to put the category ID?
__________________
Version 4.2.3 X-Cart Gold Version 4.3.1 X-Cart Gold |
|||||||||
#16
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
{if $current_category.categoryid_path|regex_replace:" /\/[0-9\/]*/":"" eq "259"}class="current"{/if}
__________________
xcart 5.1.2 |
|||||||||
|
#17
|
|||||||||
|
|||||||||
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!
__________________
Version 4.2.3 X-Cart Gold Version 4.3.1 X-Cart Gold |
|||||||||
|
#18
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
no problem, glad I could help.
__________________
xcart 5.1.2 |
|||||||||
#19
|
|||||||
|
|||||||
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
__________________
Xcart Pro version 4.4.3 |
|||||||
|
#20
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
Is there a way of doing this to highlight using the page Id for static pages?
__________________
Latest X-Cart project: www.rawlisa.co.uk ≈ Designed & developed by Believe in╝ X-Cart Gold v4.4.3 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|