Posted: Thu Apr 17, 2008 4:31 pm
I have very slightly more JavaScript knowledge than you. Looking at the "taber.js" script, I see that it selects the first tab by default.
However, if any of its tabs have the class "tabbertabdefault", that tab will be selected. So you could add a template option for the default tab (I'm assuming it'll be "deftab"), then change your Smarty so wherever "tabbertab" is assigned as a class, you also check the template option:
And so, Serendipity beats the competition again! Template options for everybody!
However, if any of its tabs have the class "tabbertabdefault", that tab will be selected. So you could add a template option for the default tab (I'm assuming it'll be "deftab"), then change your Smarty so wherever "tabbertab" is assigned as a class, you also check the template option:
Code: Select all
<div class="tabbertab{if $template_option.deftab == 'quicksearch'} tabbertabdefault{/if}">