| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Is there a hook for a static page ID? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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
|
|||||||||
|
|||||||||
![]() {if $page_data.pageid eq xx} class="current"{/if}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() 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
|
|||||||||
|
|||||||||
![]() Where are you using this code?
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() In tabs.tpl
__________________
Latest X-Cart project: www.rawlisa.co.uk ≈ Designed & developed by Believe in╝ X-Cart Gold v4.4.3 |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() I meant post your code. tabs.tpl is for speed bar links not for static pages
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#7
|
|||||||||
|
|||||||||
![]() Is this what you're looking for?
Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|