Hi,

So I’m still facing some problems with the position of my drop downs menu in my template when I add the action menu in main_menu.inc page in my template the position of sub-menus is not align with main menu. They appear in the top very far from the main menu.

 

Thanks

Thiago Reis
System Analyst
InterFactory
Phone: 55(11) 3868 3402 - ext: 15

 

-----Original Message-----
From: ghislain.cussonneau [mailto:[EMAIL PROTECTED]]
Sent
: segunda-feira, 13 de março de 2006 14:12
To: template_list
Subject: Re:Res: drop-down menu help

 

 

First : reply to template_list is better than send me an email directly ! Don't be worried of that, but how can take other people benefits of this discussion ?

 

Here you can find the answer (I suppose of your problem). Explain what I do is easy : I take the absolute container list "linkContainer" with the ID of the current rendered topLink and I add the "sub-links" edit button. See main_menu.inc to test the result (tested on the default corporate portal on Jahia 4.1.1). Here is a scriplet of the solution :

JahiaContainerList linksContainerList = jData.containers().getAbsoluteContainerList( "linkContainer", topLinkBean.getId() );

if (linksContainerList!=null) {

  ContainerListBean linksContainerListBean = new ContainerListBean(linksContainerList,jData.params());

  if (linksContainerListBean != null) {

    if (! linksContainerListBean.isActionURIsEmpty() ) {

      jData.gui().html().drawBeginActionMenu(linksContainerListBean , null, theURL + "/images/add.gif", false, "", "jahiatemplates.Corporate_portal_templates", null, out);

    }

  }

}

And that's all ...

 

Ghislain


 

 

Hi Ghislain thanks for your support but I didn’t get it yet. When you say add an action menu with API in the include/main_menu.inc like my left_menu.inc  I sent to you an attachment file with my main_menu.inc.  Tried but no success.

 

 

Thanks a lot.

 

>

>

Thiago Reis
System Analyst
InterFactory
Phone: 55(11) 3868 3402 - ext: 15

 

-----Original Message-----
From: Ghislain CUSSONNEAU [mailto:[EMAIL PROTECTED]
Sent: sábado, 11 de março de 2006 00:00
To: [email protected]
Subject: Re: FW: drop-down menu help

 

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

 

 


 

 

Ghislain CUSSONNEAU

La Poste - DIPM

CAP 44, Rue Marcel Sembat

44000 Nantes

02 51 84 48 80

 

 

Accédez au courrier électronique de La Poste : www.laposte.net ;

3615 LAPOSTENET (0,34 /mn) ; tél : 08 92 68 13 50 (0,34/mn)

Reply via email to