How do I reproduce part of a menu (a partial menu) using the RedDot Navigation Manager?

50 views
Skip to first unread message

OTCweb

unread,
Dec 4, 2009, 10:40:14 AM12/4/09
to RedDot CMS Users
I would like to have a menu on certain pages of our site that only
displays a portion of the entire menu. Specifically, I would like to
display all the child pages/nodes of a particular page/list. Using the
navigation areas I have narrowed the display down to the correct
level, but I am getting the pages on that particular level regardless
of where they appear on the menu. I would really just like to show the
following/child pages of a particular node.

It seems that render tags should be used to accomplish this (perhaps
by checking for the guid of a particular parent page?) but I am unsure
exactly how to proceed. I'm new to the render tag world, and have
found practically *no* good examples online or in the documentation
for some of the things I'd like to do... Does anyone have any
suggestions/examples that could help me out?

jkinzel

unread,
Dec 10, 2009, 11:50:58 AM12/10/09
to RedDot CMS Users
I think what you are looking for would be:

<if>
<query valuea="Context:LastIndex.Id" operator="=="
valueb="Context:CurrentIndex.Parent.Id">
<htmltext>
DO SOMETHING HERE
</htmltext>
</query>
</if>

?

OTCweb

unread,
Dec 15, 2009, 4:50:56 PM12/15/09
to RedDot CMS Users
Okay. That seems to make some sense. How would I display the headline
of a child page?

TonyGayter

unread,
Dec 16, 2009, 5:32:46 AM12/16/09
to RedDot CMS Users
Do you mean you want to acomplish something like having a main level
nav along the top but when you select one of these it shows only the
children pages of this in something like a side nav? Do you have an
example website that has the menu system you are trying to reproduce?

Eric Koleda

unread,
Dec 18, 2009, 12:01:31 AM12/18/09
to RedDot CMS Users
Hi,

From your description it sounds like you only want to display certain
levels within the active section of your site. It sounds like you've
figured out how to limit which levels are rendered, but setting up
your navigation templates correctly (using <navigation:nextlevel>
templates for the levels you want to skip over). To limit by section,
you need to make use of the selected / not selected toggle. Selected
means that the current page is in the active section of the site, and
not selected means that it isn't. So for all your
<navigation:nextlevel> templates set them to only work for selected
pages. This will have the effect of trimming your results down to
only pages in the active section of your site.

Best,
- Eric

Reply all
Reply to author
Forward
0 new messages