That's not too dificult. All you have to do is add a scriptlet which
gets the current page, then get's all its children, then loops
through the children to check if any of them should be displayed in
the navigation (i.e. not hidden pages). That way you determin if you
have a subnav to display -> From there on, all you have to do is set
two variables accordingly (start level and end level of your
navigation).
Hope this gets you started.
Will
On 06.08.2007, at 11:45, Werner Noske wrote:
Hi,
on http://www.1xeuropa.de we have a growing menu structure over
several menu levels.
We always want to display exactly 2 menu levels. That means:
- In case under a page there are subpages, we want to display the
menu level the page is belonging to and the following level
- In case there is no following level, we want to display the menu
starting one level higher.
Until now we defined a page variable for this, but always when I
insert a
new level I have to update all values for the pages below manually
then.
Can someone tell me how I can modify the template.jsp, so that it can
automatically calculate the necessary menu level from the
simpleNavigation structure?
Thanks for help.
Werner
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------