Zitat von
kischd
Ist es möglich für jedes Tab eine zusätzliche Klasse zu definieren und wie stelle ich das am besten an???
Also die wahrscheinlich schnellste und einfachste Methode wäre das Template "ce_tabcontrol_tab.tpl" zu bearbeiten und so abzuändern:
PHP-Code:
<!-- indexer::stop -->
<script type="text/javascript">
/* <![CDATA[ */
function loadTabControls() {
$$('div.mod_article').each(function(s) {
new TabControl(s, {
behaviour: '<?php echo $this->behaviour; ?>',
tabs: s.getElements('<?php echo $this->tabsSelector; ?>'),
panes: s.getElements('<?php echo $this->panesSelector; ?>'),
selectedClass: 'selected',
hoverClass: 'hover'
});
});
}
/*
* Bootstrap
*/
window.addEvent('domready', loadTabControls);
/* ]]> */
</script>
<!-- indexer::continue -->
<div class="<?php echo $this->class; ?>_tabs block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<ul>
<?php foreach ($this->titles as $key => $title) : ?>
<li id="<?php echo $this->tabs.'_'.$key; ?>" class="<?php echo $this->tabs; ?>"><?php echo $title; ?></li>
<?php endforeach; ?>
</ul>
</div>
Die Änderung ist nur in der foreach Schleife und direkt darunter. Danach hast du auf den ersten li-Tag die id "tabs_0" auf dem zweiten "tabs_1" usw...
mfg
Tom
Lesezeichen