Folgende Anweisung in den < head > der index.php deines templates
PHP-Code:
<?php
if($this->countModules('left and right') == 0) $contentwidth = "100";
if($this->countModules('left or right') == 1) $contentwidth = "80";
if($this->countModules('left and right') == 1) $contentwidth = "60";
?>
Und natürlich im < body > auch left und right abfragen:
PHP-Code:
<?php if($this->countModules('left')) : ?>
<div id="xxx">
<div class="yyy">
<jdoc:include type="modules" name="left" style="xhtml" />
</div>
</div>
<?php endif; ?>
<div id="content<?php echo $contentwidth; ?>">
und für das rechte genauso an der richtigen Stelle einbauen. Und natürlich in ID und Class die richtigen Namen eintragen.
Lesezeichen