[support] Menu problem - sidebar menu items not getting wrapped in <ul>

Laura Scott laura at pingv.com
Fri Sep 8 03:00:16 UTC 2006


I would hazard a guess that any issues would be in your css file.  
With menu items, ul and li settings tend to be overridden by menu- 
specific lists, including li.leaf, li.expanded, etc. I would look  
there before breaking apart your php template files.

Laura


On Sep 6, 2006, at 10:39 AM, Jody Cleveland wrote:

> Hello again,
>
> I've got a site here: http://www.wals.lib.wi.us/drupal/
> (I'm using a modified version of the multiflex theme)
>
> If you look at the menus on the right, the lists are pushed to the  
> left,
> so the bullets are chopped in half. (looks ok in IE) viewing the  
> source,
> I noticed that menus I create don't get wrapped in <ul></ul>. Rather,
> they're stranded <li>'s.
>
> Using the standard Bluemarine template, it works fine. So, that  
> leads me
> to believe it's a problem with my template. From what I can tell, that
> would be defined in block.tpl.php, right? If it is, does this look ok?
>
> <?php
>   //  Content region needs different wrapper divs
> if ($block->region =='content') { ?>
> <div class="content<?php echo $layoutcode ?>-container line-box">
>   <div class="content<?php echo $layoutcode ?>-container-1col">
>     <p class="content1-pagetitle"><?php print $block->subject?></p>
>     <div class="content-txtbox-shade">
>      <?php print ($block->content) ?>
>    </div>
>   </div>
> </div>
> <?php }
> // Test to see if the main menu is being output.  If so,
> // use a special class to format it properly
>
> elseif ($block->module == 'user' and $block->delta == '1') { ?>
>
>   <p class="sidebar-title-noshade bg-blue07">
>     <?php print "$block->subject"; ?></p>
>       <div class="sidebar-txtbox-noshade bg-grey03 mainmenu">
>   <ul>
>     <?php print $block->content; ?>
>   </ul>
> </div>
>
> <?php } else
>
> 	  // normal sidebar
>       {
>       $colours = array("grey","grey","grey","grey");
>       $colour=$colours[$block_id % 4];
>       // a bit of a fudge, but it will do for now.
>       ?>
> <p class="sidebar-title-noshade bg-<?php print $colour ?>07">
>   <?php print "$block->subject"; ?></p>
> <div class="sidebar-txtbox-noshade bg-<?php print $colour ?>03">
>   <?php print $block->content; ?>
> </div>	
>
>
> <?php } ; ?>
>
> Thank you in advance for any help you can provide.
>
> - jody
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]
>



More information about the support mailing list