In my layout script, I need too generate / render my menu.
If the menu item have a submenu I would change my menu item so it will render <li
class="submenu">
The reason is that i would have an image on <li>
element if subpages exits!
<ul>
<li>
<a href="/da/front/news">Nyt</a>
</li>
<li class="submenu">
<a href="/da/front/events">Aktiviteter</a>
<ul">
<li>
<a href="/da/front/document/get/document/barserves-2010-2/doctype/html">Barvagt</a>
</li>
<li>
<a href="/da/front/events/history">Afsluttede aktiviteter</a>
</li>
</ul>
</li>
<ul>
this is part of my layout script
<?php
$config = new Zend_Config_Xml ( APPLICATION_PATH . '/configs/navigation/front.xml' );
$container = new Zend_Navigation ( $config );
$this->navigation($container);
echo $this->navigation()->menu()->render();
You can add a css class or an id to a navigation item. It looks like you're navigation is generated from xml so:
Failing that you could extend Zend_Navigation
Found a solution
My layout file
And my partial file
Is this for css? Why not just use a wrapping div called 'navigation' and then go: