| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Is there a hook for a static page ID? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Is there a hook for a static page ID?
I want to indicate which static page you are on using css.
How would I output the class="current" on the links in tabs.tpl? Something like... Code:
__________________
Latest X-Cart project: www.rawlisa.co.uk ≈ Designed & developed by Believe in╝ X-Cart Gold v4.4.3 |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Is there a hook for a static page ID?
{if $page_data.pageid eq xx} class="current"{/if}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Is there a hook for a static page ID?
Hmmm. Thanks for the speed response!
But this just outputs class="current" on each of the links - making them all current. I need the class added only the link for the current page?
__________________
Latest X-Cart project: www.rawlisa.co.uk ≈ Designed & developed by Believe in╝ X-Cart Gold v4.4.3 |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Is there a hook for a static page ID?
Where are you using this code?
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Is there a hook for a static page ID?
In tabs.tpl
__________________
Latest X-Cart project: www.rawlisa.co.uk ≈ Designed & developed by Believe in╝ X-Cart Gold v4.4.3 |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Is there a hook for a static page ID?
I meant post your code. tabs.tpl is for speed bar links not for static pages
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#7
|
|||||||||
|
|||||||||
Re: Is there a hook for a static page ID?
Is this what you're looking for?
Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|