Hallo!
Ich habe ein kleines Problemchen das mir Kopfzerbrechen macht, da ich leider kein Joomla-Profi bin und euch deshalb um Hilfe bitte - wahrscheinlich ist es nur eine Kleinigkeit, aber ich sitze seit Stunden dran und komm einfach nicht drauf...
Ich möchte in einem bestehenden Template zwei neue Modulpositionen einfügen - und zwar horizontal nebeneinander. Einmal die Modulposition "top-gallery" mit fester Breite(600px) und rechts daneben "top-news", die den Rest der Seitenbreite füllen soll.
Ich habe also wie üblich die neuen Positionen in der templateDetails.xml angelegt:
Danach in der layout.css folgende styles hinzugefügt:PHP-Code:<position>top-gallery</position>
<position>top-news</position>
("topfirst" dient als Hauptcontainer für die neuen Modulpositionen)
Zu guter Letzt dann noch den Code in der index.php des Templates angepasst:PHP-Code:div#topfirst {
width: auto;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
clear: both;
}
div#top-gallery {
width: 600px;
margin: 10px 0px 0px 0px;
padding: 0px 0px 0px 0px;
clear: both;
}
div#top-news{
width: auto;
margin: 10px 0px 0px 0px;
padding: 0px 0px 0px 0px;
clear: both;
}
Die Module werden zwar angezeigt, leider jedoch untereinander. Brauch sie aber beide nebeneinander horizontal. Welchen Fehler habe ich gemacht bzw. habe ich was vergessen?PHP-Code:<?php if($this->countModules('top-gallery + top-news')) : ?>
<div class="topfirst">
<?php if($this->countModules('top-gallery')) : ?>
<div id="top-gallery">
<jdoc:include type="modules" name="top-gallery" style="yoo" />
</div>
<?php endif; ?>
<?php if($this->countModules('top-news')) : ?>
<div id="top-news">
<jdoc:include type="modules" name="top-news" style="yoo" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
Danke für eure Hilfe!
Wolve


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen