The templates in universal theme have been maintained very well, they look flash and have classes everywhere which is great.
By wouldn't it be a simple step further to give us option to include optional ID attributes in standard list templates like Tabs?
. eg, A01 is not included in the template definition
<li class="t-Tabs-item is-active" id="#A01#"><a href="#LINK#" class="t-Tabs-link"><span class="t-Icon #IMAGE#"></span><span class="t-Tabs-label">#TEXT#</span></a></li>
And beyond that just a generic parameterisation of additional attributes using those wonderful (but unused) user attributes
If I wanted to garner some sort of value or meaning or identification to a selected tab, I see three options
- Add a class as an IMAGE, and use string manipulation to harvest the value
- Create a copy of the tabs template, adding in my attribute - but then I'm detached from the universal theme
- add IDs on page load
$('#p1_mytab .t-Tabs-link').each( function(e) {
var x;
switch($(this).text())
{
case 'A':
x=0;break;
case 'B':
x=1;break;
case 'C':
x=2;break;
}
$(this).attr('id',x);
});
Which seems very hacky.
Any suggestions?