Re: FW: drop-down menu help
"Ghislain CUSSONNEAU" <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
Yes you can ! Just add an action menu with API in the include/main_menu.inc file like in include/left_menu.inc like this (extract from getPageSubTree method) :
JahiaContainerList linksContainerList = jData.containers().getAbsoluteContainerList( "linkContainer", currentPageID );
..
Enumeration linksContainerEnum = linksContainerList.getContainers();
while (linksContainerEnum.hasMoreElements()) {
JahiaContainer linksContainer = (JahiaContainer) linksContainerEnum.nextElement();
...
ContainerBean linksContainerBean = new ContainerBean(linksContainer,jData.params());
jData.gui().html().drawBeginActionMenu(linksContainerBean, null, null, false, "", "jahiatemplates.Corporate_portal_templates", null, out);
...
}
Regards,
Ghislain
Hi,
Im new on Jahia template development, and Im facing some problems with the drop-down menus. I read that they are created automatically when you create a menu on a given page, for example, when you add left-nav menu items, the drop-down menu will be populated. But my layout design doesnt support a left nav menus so I need my drop-down menus include without the let-nav menus. I tried to look up at the site map and I was allowed just to delete and update. Would be nice if I could create drop-down menus in the sitemap or anyway without left-nav.
Thanks a lot,
Att,
Thiago Reis
System Analyst
InterFactory
Phone: 55(11) 3868 3402 - ext: 15