Hi,

If i understand well your question, you want to add a second "left menu" on your templates starting on level 1

You will find such a menu here: http://svn.jahia.org/svn/basic_templates/trunk/src/jsp/navigation_menu.inc

in this example, the containerList name is "navigationContainerList" and the name of the link is "navigationLink". There is also a recursive method called "getPageSubTree". In this method, the rootPageId is the page Id from where you want to start your tree. This page Id can be the home page Id, or any (existing) page.

Just FYI, the level 1 is the home page in Jahia. So if the links to your pages A1 and B1 are on the home page, it mean that page A1 and B1 are on leve2, and C2, D2, E2, F2 are on level3.

So this example should run.

Cheers,

Philippe



At 09.11.2006 12:41, you wrote:
Hi

What I am trying to do is to make Main menu and a Submenu just below it in the double template which will dependent on the Main menu buttons.

For eg.
Level 1 buttons are : A1, B1
Level 2 buttons on clicking A1 should be: C2. D2
Level 2 buttons on clicking B1 should be: E2, F2

In the existing template, the main menu buttons are linked with the leftMenu. On clicking Main menu buttons, the associated links get displayed
in the LeftMenu.

In nav/menu.jsp currentPageId, startFromPageId are used to associte the links with the correct Menu button. The same thing I was trying to do in

common/topmenu.inc (so that I am able to select a unique sub menu for Unique button in the Main menu) which I am unable to do. What is the correct way of doing this?

Thanks

Vivek


----------
From: Vivek Verma
Sent: Wednesday, November 08, 2006 4:02 PM
To: '[email protected]'
Subject: RE: Help for adding sub-menu

Hi

Thanks for your previous reply. It helps a lot.

One more thing which I am trying to do in double template is to link Submenus for each button of Main menu. For eg.

Level 1 buttons are : A1, B1

Level 2 buttons on clicking A1 should be: C2. D2

Level 2 buttons on clicking B1 should be: E2, F2

Can you guide me, how to do this thing?

Thanks

Vivek




---------- Forwarded message ----------
From: Philippe Vollenweider <<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]>
Date: Nov 6, 2006 11:18 PM
Subject: Re: Help for adding sub-menu
To: <mailto:[email protected]>[email protected]
Hi,

There is two parts. First you need to declare your container list, and the you need to display it.
Did you also change the name of the container List in the display part?

The easy way to add a list of sub pages would something like that. You can try to copy/paste this code in your simple.jsp template:

<%
// declarations
%>
<content:declareContainerList name='yourNewContainerList' title='Your Container list'>
<content:declareContainer>
<content:declareField name='yourSubPage' title='Your sub page' type='Page'/>
</content:declareContainer>
</content:declareContainerList>
<%
// display
%>
<content:containerList name='yourNewContainerList' id='yourNewContainerList'>
<content:container id="leftMenuContainer">
    <content:pageField valueId="yourSubPage" name='yourSubPage'/>
    <logic:notEmpty name="yourSubPage">
<a href="<bean:write name='yourSubPage' property='url'/>"><bean:write name='yourSubPage' property='title'/></a>
    </logic:notEmpty>
<jahiaHtml:actionMenu name="leftMenuContainer" namePostFix="" resourceBundle="jahiatemplates.Corporate_portal_templates" useFieldSet="false">
    </jahiaHtml:actionMenu>
    <br/>
</content:container>
<jahiaHtml:actionMenu name="yourNewContainerList" namePostFix="" resourceBundle="jahiatemplates.Corporate_portal_templates" useFieldSet="false">
</jahiaHtml:actionMenu>
</content:containerList>

You can also have a look at the content:absoluteContainerList tag if you always want to get your container list on a specific pageLevel (pageLevel="1" is the home page).

I hope it could help you.

Philippe.


At 06.11.2006 14:44, you wrote:
Hello

I am trying to modify the existing double template in Jahia. My requirements are:

To add a submenu consisting of buttons below the top menu and on clicking those button-links a list of items should be created on left but no drop down is required for menu buttons. For this I need certain guidelines to start.

What I understood is that everything is governed by containers but how to handle the containers according to my requirements?

What I did is made few jsps similar to common/topmenu.jsp, common/topmenu.inc, common_var.inc, etc and included the jsps in the top.inc and finally include top.inc in double.jsp. I have also changed the container names. But from all these stuff I am able to get only two duplicate menus.

Please guide me the correct way of doing this.

Thanks

Vivek




Vivek Verma | Software Engineer
Exponential | Tribal Fusion R&D Pvt Ltd, Tower C,
Logix Technopark, Sector 127, NOIDA, U.P., India
C: +91-9873601767| <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]


-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
<http://www.jahia.org/>www.jahia.org Community and product web site
<http://www.jahia.com/>www.jahia.com Commercial services company


--
Sanjay Goel
<http://sanjaygoel.blogspot.com>http://sanjaygoel.blogspot.com

-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company

Reply via email to