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,
 
I’m new on Jahia template development, and I’m 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 doesn’t 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.