Joomla.it Forum
Joomla! 1.0.x (versione con supporto terminato) => Le voci di Joomla.it (solo per versione Joomla 1.0.x) => Installazione => : kjdx 04 Jan 2008, 13:02:23
-
Ho aperto l'index.php del templates che sto usando e ho visto che ci sta solo top lefft e right è forse questo il motivo per il quale non mi si vedono i moduli che assegno alle altre posizioni ?
<?php if ( mosCountModules( 'left' ) && ($_REQUEST["task"] != "edit") && ($_REQUEST["task"] != "new" ) ) { ?>
<div class="vistaleft">
<?php mosLoadModules ( 'left', -3 ); ?>
<? $sg = 'banner'; include "templates.php"; ?>
</div>
<?php } ?>
</td>
<td valign="top" class="td12"></td>
<td valign="top" class="td13" style="padding:70px 0px 10px 0px;">
<?php if ( mosCountModules( 'right' ) && ($_REQUEST["task"] != "edit") && ($_REQUEST["task"] != "new" ) ) { ?>
<div class="vistaright">
<?php mosLoadModules ( 'right', -3 ); ?>
</div>
<?php } ?>
</td>
<td valign="top" class="td14"></td>
<td valign="top" class="td15">
<div class="vistamain">
<?php if ( mosCountModules( 'top' ) && ($_REQUEST["task"] != "edit") && ($_REQUEST["task"] != "new" ) ) { ?>
<div class="vistatop">
<?php mosLoadModules ( 'top', -1 );?>
</div>
<?php } ?>
<?php mosMainBody(); ?>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table align="center">
<tr>
<td class="td16"></td>
</tr>
<tr>
<td>
<span class="copyright"><? $sg = ''; include "templates.php"; ?></span>
</td>
</tr>
</table>
<!-- -->
</td>
<td class="bg_right"valign="top"><div class="bg_right_top"></div></td>
</tr>
</table>
<!-- -->
</center>
</body>
</html>
che devo fare per far funzionare anche banner eccetera ?
Se ci metto questo pezzo di codice risolvo in parte ?
<div class="banner"><?php mosLoadModules('banner', -1); ?></div>
<?php if (mosCountModules('user1') || mosCountModules('user2')) { ?>
<table class="minimal" width="550" id="greybox">
<tr valign="top">
<?php if (mosCountModules('user1') > 0) { ?>
<td class="<?php echo $greybox; ?>box">
<?php mosLoadModules('user1', -2); ?>
</td>
<?php } ?>
<?php if (mosCountModules('user1') && mosCountModules('user2')) { ?>
<td class="spacer"></td>
<?php } ?>
<?php if (mosCountModules('user2') > 0) { ?>
<td class="<?php echo $greybox; ?>box">
<?php mosLoadModules('user2', -2); ?>
</td>
<?php } ?>
</tr>
</table>
<?php } ?>
<div id="pathway"><?php mosPathWay(); ?></div>
<table width="100%">
<tr valign="top">
<td> <?php mosMainBody(); ?>
<div class="copyright">
<?php mosLoadModules('footer'); ?><?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
</div>
</td>
-
scegli il punto in cui vuoi inserire i nuovi blocchi e inserisci queste righe di codice (l'esempio sotto è per inset, ovviamente sostituirai inset ogni volta col blocco che dovrai inserire):
<?php if(mosCountModules("inset")) { ?>
<?php mosLoadModules(inset); ?>
<?php } else {echo" ";} ?>
Dopo ricordati di attivare in Moduli->ModuliSito i moduli relativi ad ogni posizione.
-
e utilizzare un template che abbia già tutto?
-
e utilizzare un template che abbia già tutto?
Ovviamente va bene anche questa scelta... col compromesso di trovare un template che abbia tutto e che piaccia a livello di grafica! :D
-
Credo che un template tra i tanti disponibili che si avvicini alla tua idea esista. poi per la grafica/colori è un altro discorso.