I had this same req a while ago ( http://www.mail-archive.com/[EMAIL 
PROTECTED]/msg09943.html )  
The way I did it, with help from someone else on the list, was to use two controls; 
MainMenu and SubMenu.  MainMenu is modelled after VelocityPortletSetControl, and adds 
the concept of "level" to a particular tab. It returns the entire menu, even if a 
particular top-menu item isn't open.  This was fine for our purposes.  

So your psml might look something like this:

<portlets id="Staff">
    <control name="MainMenuControl"/>
    <controller name="CardPortletController"/>
    <entry id="Home" name="Intranet" parent="ContentViewSurfer"/>
    <portlets id="AdminHUB" name="AdminHUB">
        <control name="SubMenuControl"/>
        <controller name="CardPortletController"/>
        <entry id="Blank" parent="Blank"/>
    </portlets>
</portlets>

when you menu was being drawn, you'd get a list of two portlets (Home and Blank); 
their levels being 0 and 1 respectively.  

hope that's marginally helpful

>>> [EMAIL PROTECTED] 02/17/04 10:30PM >>>
Hi,
 I'm trying to achieve the following menu structure on the left hand side of the 
portal:
Menu
  submenu1
    subsubmenu2
  submenu2
Menu1
  submenu3
    subsubmenu3

I know i can write my own control...but can someone please provide some sort of 
guidelines as what i need to do to achieve this?

How does the PSML get affected when i try to implement this structure?
  Does the PSML have to reflect the same structure? I'm confused here could someone 
please clear my doubt?

I hope someone can help me here. Read some mailing list e-mails but did not get enough 
idea to proceed.

Thanks in advance for your time and patience.
Regards,
Archana

---------------------------------------------------------------------
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]

Reply via email to