![]() |
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:
{if $page eq "about" } class="current"{/if} |
Re: Is there a hook for a static page ID?
{if $page_data.pageid eq xx} class="current"{/if}
|
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? |
Re: Is there a hook for a static page ID?
Where are you using this code?
|
Re: Is there a hook for a static page ID?
In tabs.tpl
|
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
|
Re: Is there a hook for a static page ID?
Is this what you're looking for?
Code:
{if $page_data.pageid eq $smarty.get.pageid} class="current"{/if} |
All times are GMT -8. The time now is 01:36 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.