PDA

Zobacz pełną wersję : Moduły w templatce ...



todd4
16-10-2008, 12:24
Witam

Potrzebuję umięścić jeszcze 2 pola na moduły w templatce a nie wiem jak to zrobić. W joomli 1.0.15 było to bez problemu. Mianowicie:

Mam 2 kolumny po bokach i jedna centrajna dla komponentow a potrzebuje zeby ta centralna zeszla trochę w dol a nad nią pojawiły się jeszcze 2 kolumny obok siebie takie ktore bedą krótkie np: leftcenter i rightcenter tak zeby strona pod headerem miala 4 kolumny z tego d srodkowe krotkie i pod nimi komponent. ...troche zamieszalem ale moze ktoś zrozumie:)

Kod html:

<body class="body_bg">
<div class="bg">
<div id="wrapper">
<div id="header_3">
<div id="header_2">
<div id="header_1">
<div id="header">
<div id="logo">
<a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a>
</div>
</div>

</div>
</div>
</div>
<div id="top_menu">
<table cellpadding="0" cellspacing="0" style="margin:0 auto;">
<tr>
<td>
<jdoc:include type="modules" name="user3" />
</td>
</tr>
</table>
<div class="clr"></div>
</div>
<div class="content_b">
<div id="content">
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
<?php $sg = 'banner'; include "templates.php"; ?>
</div>
<?php endif; ?>



<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="main">
<?php else: ?>
<div id="main_full">
<?php endif; ?>
<div class="nopad">
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
</div>

<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="search">
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<jdoc:include type="modules" name="user4" />
</td>
</tr>
</table>
<div class="clr"></div>
</div>
<div id="rightcolumn" style="float:right;">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>
<jdoc:include type="modules" name="debug" />
</div>
</div>
<div class="clr"></div>
</div>


Może ktoś mi w tym pomoże

Pozdrawiam

zwiastun
16-10-2008, 14:12
Zrozumieć zrozumie, ale równie i Ty winieneś rozumieć, że to nie jest hop-siup dodam sobie dwie instrukcje i będzie. Bo oprócz pozycji, trzeba jeszcze dodać
odpowiedzi kod CSS.
Niemniej instrukcje włączające przecież masz na dołączonym obrazku:
<jdoc:include type="modules" name="nazwa_pozycji" style="opcjonalne" />

style mogą być: none, horz, table, rounded, xhtml