Back to top

Autore Topic: Problema posizione aggiunta  (Letto 1105 volte)

Offline forna

  • Nuovo arrivato
  • *
  • Post: 24
  • Sesso: Maschio
    • Mostra profilo
Problema posizione aggiunta
« il: 16 Mag 2011, 19:04:45 »
Salve a tutti! sto facendo un sito con joomla usando il template siteground-j15-78

Ho un "piccolo" problema....ho tentato di inserire una nuova posizione (eliminando la foto e le scritte) nell'header denominata (come la tabella) header_img...

Il modulo in questione è lo smart flash header...ho modificato il file index.php e templateDetails.xml nel seguente modo:

index.php
Codice: [Seleziona]
<?php
defined
'_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage'tpl_SG1' );
?>

<!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="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<!--[if lte IE 6]>
<link href="templates/<?php echo $this->template ?>/css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body id="page_bg">
<div id="bg">
<div id="top_bg">
<div id="footer_bg">
<div id="container">
<div id="top">
<div id="pillmenu">
<jdoc:include type="modules" name="user3" />
</div>
<div id="search">
<jdoc:include type="modules" name="user4" />
</div>
<div class="clr"></div>
</div>
<div id="header">
<div id="header_l">
<div id="header_r">
<div id="header_img"><jdoc:include type="module" name="header" style="xhtml" />
</div>

<!--pathway start-->
<div class="cpathway">
<jdoc:include type="module" name="breadcrumbs" />
</div>
<!--pathway end-->
</div>
</div>
</div>

<div id="content_bottom">
<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('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn">
<?php elseif($this->countModules('left') and !$this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_left">
<?php elseif(!$this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_right">
<?php else: ?>
<div id="maincolumn_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="rightcolumn">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>
<div id="footer">
<div id="sgf">
<? $sg = ''; include "templates.php"; ?>
</div>
<p style="text-align: center;">
<a href="http://validator.w3.org/check/referer">valid xhtml</a>
<a href="http://jigsaw.w3.org/css-validator/check/referer">valid css</a>
</p>
</div>
<jdoc:include type="modules" name="debug" />
</div>
</div>
</div>
</div>
</div>
</div>

</body>
</html>

templateDetails.xml

Codice: [Seleziona]
<positions>
<position>user3</position>           
<position>user4</position>           
<position>breadcrumbs</position>           
<position>left</position>                 
<position>right</position>       
<position>debug</position>
<position>header_img</position>
</positions>

il file css non l'ho modificato...


Come mai il modulo mi appare solo e solamente se lo metti in posizione lefto o right??

Offline kuvier00

  • Appassionato
  • ***
  • Post: 440
    • Mostra profilo
Re:Problema posizione aggiunta
« Risposta #1 il: 17 Mag 2011, 16:08:59 »
La direttiva che hai usato, <jdoc:include type="module" name="header" style="xhtml" />, indica che va inserito lì il modulo di tipo header (che di default non esiste), quindi ti chiedo: il modulo smart flash header è di tipo mod_header?

Se così non fosse, usa invece questa direttiva: <jdoc:include type="modules" name="heade_img" style="xhtml" />
In questo modo definisci una posizione modulo di nome header_img, quindi lato amministrazione devi impostare lo smart flash header in posizione header_img

 



Web Design Bolzano Kreatif