Elin,
Well, I don't know if it's a bug or just my template. If the code I
posted should work, then there is a problem, but that was what I was
trying to determine. I tried uing different names for my positions
and of course making sure those names were in my xml details
file...but with no success. I can put modules either in all the
"sidebar-2" position or all in the "sidebar-1", however, when I try to
put modules in both one dissapears and it's always the last column
(sidebar-2) leaving the first "sidebar-1" working. I try and keep my
code very simple for my own sake. Do you see anything wrong with the
code? I've decided to post the entire contents of my "index.php"
page. I feel like I've just looked at too long and am probably
missing something and would rather know for sure before reporting a
bug. Thanks. :)
<?php
/**
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All
rights reserved.
* @license GNU/GPL, see LICENSE.php
* 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.
* See COPYRIGHT.php for copyright notices and details.
*/
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>
<?php
$app = JFactory::getApplication();
?>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/
<?php echo $this->template; ?>/css/template.css" type="text/css" />
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo
$this->template; ?>/css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if lte IE 6]>
<style type="text/css">
#headerLogo, .moduletable h3, .moduletable_menu
h3, .moduletable_text h3, .moduletable_featured
h3, .moduletable_online, .moduletable_flashBanners, .button, a.readon
{behavior: url(<?php echo $path ?>/css/iepngfix.htc);}
</style>
<![endif]-->
</head>
<body id="body">
<div id="wrapper">
<div id="headerLogo" style="z-index:1">
<div id="logo"><a href="<?php echo $app->getCfg('live_site'); ?>"
title="<?php echo $app->getCfg('sitename'); ?>"></a></div>
<div id="topRight">
<div id="breadcrumb"><jdoc:include type="modules" name="breadcrumb" /
></div>
<div class="clear"></div>
<div id="search"><jdoc:include type="modules" name="search" /></div>
<div class="clear"></div>
<jdoc:include type="modules" name="top" /><!-- TOP MENU PLACEMENT
HERE-->
</div><!--END TOP RIGHT-->
</div><!--END HEADER LOGO-->
<div class="clear"></div>
<?php if ($this->countModules ('sidebar-1 and sidebar-2')) { ?>
<table border="0" cellspacing="0" cellpadding="0" id="mainLeft">
<tr>
<td><jdoc:include type="message" /><jdoc:include
type="component" /></td>
</tr>
</table>
<div id="sidebar1"><jdoc:include type="modules"
name="sidebar-1" style="fx" /></div>
<div id="sidebar2"><jdoc:include type="modules" name="sidebar-2"
style="fx" /></div>
<?php }else if($this->countModules('sidebar-1')) { ?>
<div id="mainLeft2">
<jdoc:include type="message" /><jdoc:include type="component" />
</div><!--END LEFT CONTENT -->
<div id="sidebar1"><jdoc:include type="modules"
name="sidebar-1" style="fx" /></div>
<?php }else if($this->countModules('sidebar-2')) { ?>
<div id="mainLeft2">
<jdoc:include type="message" /><jdoc:include type="component" />
</div><!--END LEFT CONTENT -->
<div id="sidebar2"><jdoc:include type="modules"
name="sidebar-2" style="fx" /></div>
<?php }else{ ?>
<div id="mainFull">
<jdoc:include type="message" /><jdoc:include type="component" />
</div><!--END MAIN FULL-->
<?php } ?>
<div class="clear"></div>
<div id="footer">
<div id="footerTop"></div>
<div id="footerMid">
<jdoc:include type="modules" name="bottom" style="fx" />
</div><!--END FOOTER MID-->
</div> <!--END FOOTER-->
<div class="clear"></div>
<div id="footerBottom"></div> <!--END FOOTER BOTTOM-->
<div id="copyright"><a href="
http://www.joomla.org"
target="new">Joomla</a> is Free Software released under the GNU/GPL
License. </div>
</div><!--END TEMPLATE WRAPPER-->
<jdoc:include type="modules" name="debug" />
</body>
</html>
> > >
http://www.theartofjoomla.com-the art of becoming a Joomla developer