Ciao,
partendo da questo tutorial che ho capito e che mi funziona perfettamente stò cercando di realizzare un mio template personale mixando con il codice di un altro template in mio possesso
Il problema è che: NON MI INSERISCE I MODULI NELLE AREE SPECIFICATE, in pratica non si vedono...
Vabbè...per ora sono ancora in alto mare perchè a differnza dell'esempio minimale (che dovrebbe mostrare tutti i moduli del sito uno sotto all'altro senza aree) ho creato solamente una mia area personale chiamata user4
Questo è il mio codice di index.php attuale:
<?php
/**
* Date January 30, 2012
* Copyright Copyright (C) 2012 Lal B. Saud
* License GPL
*/
defined('_JEXEC') or die;
$app = JFactory::getApplication();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template2.css" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/mootools.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/moomenu.js"></script>
</head>
<body id="page_bg">
<a name="up" id="up"></a>
<?php echo $app->getCfg('sitename');?>
<div id="main_bg">
<div id="h_area">
<p>h_area</p>
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo1.gif" alt="" align="left" /><a href="index.php" class="logo" title=""><?php echo $mainframe->getCfg('sitename') ;?></a>
<div id="user4"><p>user4</p><jdoc:include type="modules" name="user4" /></div>
</div>
</div>
<jdoc:include type="modules" name="top" />
<jdoc:include type="modules" name="left" />
<jdoc:include type="modules" name="breadcrumbs" />
<jdoc:include type="message" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="right" />
<jdoc:include type="modules" name="footer" />
<jdoc:include type="modules" name="debug" />
</body>
</html>
E questo è il mio template2.css che contiene solamente il CSS relativo ai div ed agli oggetti din quì inseriti nell'index.php
html {
height: 100%;
margin-bottom: 1px;
}
form {
display:inline;
}
body {
margin: 0px 0px 0px 0px;
width: 100%;
display: table;
background:url(../images/bg_page.png) top repeat-x #FFE382;
}
body, td{
font-family: "Trebuchet MS";
font-size: 13px;
color: #ACACAC;
line-height: 1.3em;
}
a:link, a:visited {
text-decoration: none;
font-weight: normal;
}
a:hover {
text-decoration: underline;
font-weight: normal;
}
input.button { cursor: pointer; }
p { margin-top: 0; margin-bottom: 5px; }
img { border: 0 none; margin:0px; }
/*****************************************/
/*** Template specific layout elements ***/
/*****************************************/
#page_bg {
padding: 0px;
margin: 0px;
margin-bottom: 0px;
background: #202020 url(../images/bg_page.png) center repeat-y;
}
div#main_bg{
margin:0px auto;
width: 978px;
text-align:left;
}
div#user4{
float:right;
text-align:left;
margin-right: 20px;
}
div#user4 div.search{
width:220px;
height:46px;
text-align:left;
padding-top: 5px;
background: url(../images/search_bg.gif) top left no-repeat;
}
div#user4 div.search .inputbox {
background:#FFFFFF;
width: 150px;
height: 16px;
margin-left: 60px;
font-size: 11px;
color: #454545;
padding:5px 2px 2px 2px;
border: 1px solid #D3D3D3;
}
Nel file templateDetails.xml ho provveduto ad inserire la posizione user4 che voglio avere
<positions>
<position>breadcrumbs</position>
<position>left</position>
<position>right</position>
<position>top</position>
<position>footer</position>
<position>debug</position>
<position>user4</position>
</positions>
Il problema è che non mi visualizza nulla in homepage...ho provato a mettere dei moduli nell'area user4 ma niente di niente...
Come mai? da cosa dipende? Cosa stò sbagliando?
Per favore aiutatemi perchè sono autodidatta e stò impazzendo
Grazie
Andrea