Ciao a tutti, mi sto cervellando ma non riesco proprio, ho seguito la guida su WIKI ma niente, vorrei creare una nuova posizione, la chiamerei TOPBANNER, vi posto il file index.php magari riuscite a dirmi dove diavolo devo mettere sto benedetto codice... Ho la versione JOOMLA 1.5.8 Iataliana
Ho provao ma il banner esce ma mi crea un CAOS nella pagina, addirittura mi duplica i contenuti della pagina!!!
in templateDetails.xml ho inserito
<position>TOPBANNER</position>
in templete.css ho inserito
#nuovo_div {
float: left;
width:100%}
Rimane da capire dove mettere il codice che dice la guida, oppure c'è altro da fare???
GRAZIE!
<?php
/**
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
* @license GNU/GPL
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<!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" /> <!--head set in the global configuration-->
<link rel="stylesheet" href="templates/<?php echo $this->template?>/css/template.css" type="text/css" />
<?php if($this->params->get('colorVariation')==1) : ?>
<link rel="stylesheet" href="templates/<?php echo $this->template?>/css/orange.css" type="text/css" />
<?php endif ?>
<?php if($this->params->get('colorVariation')==0) : ?>
<link rel="stylesheet" href="templates/<?php echo $this->template?>/css/blue.css" type="text/css" />
<?php endif ?>
<?php if($this->params->get('colorVariation')==2) : ?>
<link rel="stylesheet" href="templates/<?php echo $this->template?>/css/purple.css" type="text/css" />
<?php endif ?>
<!--[if lte IE 7]>
<link href="templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link href="templates/<?php echo $this->template?>/css/alarge.css" rel="alternate stylesheet" type="text/css" media="screen" title="alarge"/>
<link href="templates/<?php echo $this->template?>/css/amedium.css" rel="alternate stylesheet" type="text/css" media="screen" title="amedium"/>
<link href="templates/<?php echo $this->template?>/css/asmall.css" rel="alternate stylesheet" type="text/css" media="screen" title="asmall"/>
<script src="templates/<?php echo $this->template?>/styleswitcher.js" type="text/javascript"></script>
<?php if($this->countModules('user3 and top')== 1) : ?>
<style type="text/css">
#user3{
background: transparent url(templates/<?php echo $this->template ?>/images/user3bg.png) bottom left repeat-x;
}
</style>
<?php endif; ?>
<?php
if($this->countModules('left and right')==0) $contentwidth="wide";
if($this->countModules('left')) $contentwidth="leftonly";
if($this->countModules('right')) $contentwidth="rightonly";
if($this->countModules('left and right') == 1) $contentwidth="narrow";
?>
</head>
<body>
<jdoc:include type="message" />
<div id="bg">
<div id="wrapper" class="width_<?php echo $this->params->get('widthStyle'); ?>">
<div id="heading">
<h1><a href="index.php" title="<?php echo JText::_( "homepage" ); ?>" id="sitename<?php echo $this->params->get('logoStyle'); ?>"><?php echo $mainframe->getCfg('sitename');?></a></h1>
<?php if($this->params->get('showSwitcher')) : ?>
<div id="buttons"><a href="#" id="alarge" class="btnicon" title="<?php echo JText::_( "TO_LARGE" ); ?> " onclick="setActiveStyleSheet('alarge'); return false;"><?php echo JText::_( "Large" ); ?> </a><a href="#" id="amedium" class="btnicon" title="<?php echo JText::_( "TO_MEDIUM" ); ?> " onclick="setActiveStyleSheet('amedium'); return false;"><?php echo JText::_( "Medium" ); ?> </a><a href="#" id="asmall" class="btnicon" title="<?php echo JText::_( "TO_SMALL" ); ?> " onclick="setActiveStyleSheet('asmall'); return false;"><?php echo JText::_( "Small" ); ?> </a></div>
<?php endif; ?>
</div>
<div id="header"><div class="bgleft"><div class="bgright"><div class="bgbl">
<?php if($this->countModules('user3')) : ?>
<div id="user3">
<jdoc:include type="modules" name="user3" style="xhtml" />
</div><!--user3-->
<?php endif; ?>
<?php if($this->countModules('top')) : ?>
<div id="top">
<jdoc:include type="modules" name="top" style="xhtml" />
</div><!--top-->
<?php endif; ?>
<?php if($this->countModules('user4')) : ?>
<div id="user4"><div class="bgright"><div class="bg">
<jdoc:include type="modules" name="user4" style="xhtml" />
</div></div></div><!--search-->
<?php endif; ?>
</div></div></div></div><!--header-->
<div id="container"><div class="bgright"><div class="bg">
<div id="breadcrumbs">
<?php echo JText::_( "You are here" ); ?> <img src="templates/<?php echo $this->template ?>/images/arrow.png" alt="arrow"/> <jdoc:include type="module" name="breadcrumbs" />
</div>
<div id="content">
<div class="middlewrap" id="middlewrap<?php echo $contentwidth; ?>">
<div class="middle" id="middle<?php echo $contentwidth; ?>"><div class="middlebg">
<jdoc:include type="component" style="xhtml" />
</div></div>
</div>
<?php if($this->countModules('left')) : ?>
<div class="left" id="left<?php echo $contentwidth; ?>"><div class="bgtop">
<jdoc:include type="modules" name="left" style="xhtml" />
</div></div>
<?php endif; ?>
<?php if($this->countModules('right')) : ?>
<div class="right" id="right<?php echo $contentwidth; ?>"><div class="bgtop">
<jdoc:include type="modules" name="right" style="xhtml" />
</div></div>
<?php endif; ?>
<div class="clear"></div>
</div><!--content-->
<?php if($this->countModules('user1 or user2')) : ?>
<div id="bottom"><div class="bottombg">
<?php if($this->countModules('user1')) : ?>
<div id="user1">
<jdoc:include type="modules" name="user1" style="xhtml" />
</div>
<?php endif; ?>
<?php if($this->countModules('user2')) : ?>
<div id="user2">
<jdoc:include type="modules" name="user2" style="xhtml" />
</div>
<?php endif; ?>
<div class="clear"></div>
</div></div><!--bottom-->
<?php endif; ?>
<div id="footer">
<p class="footerleft">
<jdoc:include type="modules" name="syndicate" />
</p>
<p class="footerright">
Powered by <a href="http://www.joomla.org">Joomla!</a>.
Valid <a href="http://validator.w3.org/check/referer" target="_blank">XHTML</a> and <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank">CSS</a>.
</p>
<div class="clear"></div>
</div>
<div id="reflection"></div>
</div></div></div><!--container-->
</div><!--wrapper-->
</div><!--bg-->
</body>
</html>