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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
theTree
New Member
New Member
Posts: 2
Joined: Tue Nov 18, 2008 8:49 pm

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

Post 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!
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

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

Post 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
theTree
New Member
New Member
Posts: 2
Joined: Tue Nov 18, 2008 8:49 pm

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

Post by theTree »

Ah, ok thanks! Should have just tried that  ::)
Post Reply

Return to “CMSMS Core”