That's what I did in the past to get this working (this is straight from my old
svn repo):
in the top level folder.metadata
<!-- temporary menu definitions for jscookmenu layout decorator; will be
standard -->
<menu name="additional-links" regexp="true" options="/*.link"/>
in my decoration-macros.vm
#* include nested menu links navigation component *#
#macro (includeNestedLinksWithIconNavigation $_menu $_orientation)
#set($menuTitle = $_menu.getTitle($preferedLocale))
#set($menuName = $_menu.getShortTitle($preferedLocale))
#if($menuName)
<div class="pagetitle" title="$!menuTitle">${ menuName}</div>
#end
<div>
#foreach($element in $_menu.elements.iterator())
#if($element.elementType == "option")
#set($linkTitle =
$element.getTitle($preferedLocale)) #set($linkName =
$element.getShortTitle($preferedLocale))
#set($linkUrl = $jetspeed.getAbsoluteUrl($element.url))
#if($element.type == "page")
<div><a href="$linkUrl" class="LinkPage" title="$!linkTitle">
${linkName}</a></div>
#elseif($element.type == "link")
#set($linkTarget = $element.target)
<div><a href="$linkUrl" target="$linkTarget" class="Link" title="$!linkTitle">
${ linkName}</a></div>
#elseif($element.type == "folder")
<div><a href="$linkUrl" class="LinkFolder"
title="$!linkTitle">$linkName</a></div>
#end
#elseif($element.elementType == "menu")
#includeNestedLinksWithIconNavigation($element $_orientation)
#elseif($element.elementType == "separator")
#set($separatorTitle = $element.getTitle($preferedLocale))
#set($separatorText = $element.getText($preferedLocale))
<div class="pagetitle" title="$!separatorTitle">
${ separatorText}</div>
#end
#end
</div>
#end
On Mon Apr 27,2009 12:08 pm, vasasree wrote:
>
> Thanks for the response. I will try this link.
>
>
> --KB
>
> Randy Watler wrote:
> >
> > Vasasree,
> >
> > You need to customize the standard menu definitions using declarative
> > menus.
> >
> > There are many ways to do what you want, but you need to experiment
> > until you get close. I'll be happy to answer specific questions, but
> > best that you forge ahead in your environment first.
> >
> > See:
> > http://portals.apache.org/jetspeed-2/guides/guide-menus-declarative-psml.html
> >
> > Randy
> >
> > vasasree wrote:
> >> I want to display muilti level navigational menu on the left hand side.
> >> It is something like I have "Home", "My Reports" , "Sales" as the top
> >> level
> >> folders, and each folder has subfolders and subfolders has sub
> >> folders(another level). When logon to the portal, it should display the
> >> top
> >> level folders. when click on any top level folder, it should just expand
> >> and
> >> shows up the pages&subfolder init.
> >>
> >> When I click on the top level folder , for example "Sales" it is taking
> >> to a
> >> page where it displays subfolders and pages only. It is missing the
> >> parent
> >> folders in the navigation menu.
> >>
> >> Any help is appreciated.
> >>
> >>
> >> Thanks
> >> KB
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Multi-level-menu-tp23262295p23262951.html
> Sent from the Jetspeed - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]