That is helpful. Thanks for responding. Based on what you told me though i have some 
questions:

1) So the number of levels in the menu are fixed then. So if i have submenu nested 
three levels deep then i should have three Sublevel controls. For eg.  if i want 

 MainMenu (control)
   SubMenu (control) 
      SubsubMenu1(control) 
       Subsubmenu2
          Subsubsubmenu2(control) 

Then do i need to have a control per level. I hope this is clear. Let me know if it is 
not.

2) I should say (rather depressingly) that i have no clue what this control code 
should like. Is it possible to get a sample from somewhere? 

I hope i'm not imposing too much.
thanks once again,
Regards,
Archana


>>> [EMAIL PROTECTED] 02/18/04 08:37AM >>>
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