Joomla.it Forum

Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => : pikkolo 18 Sep 2010, 12:56:30

: Index.php per joomla 1.6 non funziona, stesso index.php per joomla 1.5 funge
: pikkolo 18 Sep 2010, 12:56:30
Ciao a tutti


Questo č l index.php del mio template per joomla 1.6


:
<?php
/**
 * @version    $Id: index.php 18232 2010-07-24 09:21:45Z infograf768 $
 * @package    Joomla.Site
 * @copyright  Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>

<!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/template.css" type="text/css" />

</head>

<body>
<div id="<?php
$ora 
date("s"time());
if( 
$ora >= && $ora <= 20 ) {
echo 
"component_notte";
}
elseif ( 
$ora >= 20 && $ora <= 40 ) {
echo 
"component_giorno";
} else {
echo 
"component_sera";
}
?>
"><jdoc:include type="component" /></div>

</body>
</html>

Questo č l index.php del mio template per joomla 1.5

:
<!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/template_base_by_boh_15/css/template_joomla.css" type="text/css" />
</head>
<body>
<div id="<?php
$ora 
date("s"time());
if( 
$ora >= && $ora <= 20 ) {
echo 
"component_notte";
}
elseif ( 
$ora >= 20 && $ora <= 40 ) {
echo 
"component_giorno";
} else {
echo 
"component_sera";
}
?>
"><jdoc:include type="component" /></div>
</body>
</html>



perchč il template 1.5 funge a meraviglia e quello 1.6 no ?

Per la precisione, nel caso di 1.6 firebug dice che la pagina visualizzata non ha alcuna css rule .. quindi immagino non venga caricato il file css :(

Grazie a chiunque vorrā aiutare :°)
: Re:Index.php per joomla 1.6 non funziona, stesso index.php per joomla 1.5 funge
: maicolstaip 18 Sep 2010, 16:48:16
Ciao pikkolo,
a prima vista manca la chiamata al css

:
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/nome_del_template/css/template.css" type="text/css" />
: Re:Index.php per joomla 1.6 non funziona, stesso index.php per joomla 1.5 funge
: pikkolo 19 Sep 2010, 11:34:11
Non č questa ? :o

:
<head>
<jdoc:include type="head" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/template.css" type="text/css" />

</head>
: Re:Index.php per joomla 1.6 non funziona, stesso index.php per joomla 1.5 funge
: pikkolo 21 Sep 2010, 01:23:46
Dopo una settimana di sclero mi sono accorto che c' era un typo gigantesco :) Il percorso dell inclusione per il css nel 1.6 puntava alla directory system e non a quella del template :D scusate cari ora funge