Hi,

i wonder why my sidebars do not show up, although they are in the page.tpl.php:

How to find out the reason for not seeing it?
The primary links and secondary links are shown correctly, but left/right is empty.

Thanks in advance for advice

Comments

liegebuggy’s picture

		<div id="sidebar">
			<?php if ($sidebar_left): ?>
			<?php print $sidebar_left ?>
			<?php endif; ?>
			<?php if ($sidebar_right): ?>
			<?php print $sidebar_right ?>
			<?php endif; ?>
		</div>
Jeff Burnz’s picture

...unless you have defined $sidebar_left & $sidebar_right as custom regions, they don't exist in Drupal 6, the correct variables are:

$left & $right

For example from one of my themes:

<?php if (!empty($left)): ?>
  <div id="sidebar-left">
    <?php print $left; ?>
  </div> <!-- /sidebar-left -->
<?php endif; ?>

<?php if (!empty($right)): ?>
  <div id="sidebar-right">
    <?php print $right; ?>
  </div> <!-- /sidebar-right -->
<?php endif; ?>

Need help with IE?
Learn basic XHTML and CSS first.
Get smart with web specs.