Page 1 of 1

To instances of {menu}, the second based on the $node->current of the first?

Posted: Tue Nov 18, 2008 8:57 pm
by theTree
Hi all, thanks in advance!

I have a template with HTML like so:

Code: Select all

	<div id="sTop" class="clearfix">
		<ul>
			<li class="on"><a href="#">Film / Tv</a></li>
			<li><a href="#">Security</a></li>
			<li>|</li>
			<li><a href="#">Events</a></li>
			<li>|</li>
			<li><a href="#">Why Us?</a></li>
		</ul>
	</div>
	<div id="sBottom" class="clearfix">
		<ul>
			<li class="on"><a href="#">Specialised Extras</a></li>
			<li><a href="#"> Advisors</a></li>
			<li><a href="#">On set Co-ordinators</a></li>
			<li><a href="#"> Resources</a></li>
		</ul>
	</div>
And need to replace the two lists with {menu}'s. This is fine, however the second menu (in the div id="sBottom") is a level 3 menu, and needs to render based on the current item in the first menu. So, a basic menu / sub menu setup, but I need to get it working with two {menu} tags instead of nesting the second unordered list.

Is this possible?

Many thanks!

Re: To instances of {menu}, the second based on the $node->current of the first?

Posted: Tue Nov 18, 2008 9:56 pm
by Nullig
You just need 2 menu calls, like:

{menu template='whatever template you like'} <-- Main menu
{menu template='whatever template you like' start_level='2'} <-- Submenu

Nullig

Re: To instances of {menu}, the second based on the $node->current of the first?

Posted: Tue Nov 18, 2008 10:04 pm
by theTree
Ah, ok thanks! Should have just tried that  ::)