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="" 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| [EMAIL PROTECTED]
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company
