drop-down menu position help (URG) add* I forgot to mention ...

"Thiago Reis - InterFactory" <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Message-ID <000201c64922$46744ae0$320000ac@interdomain>
 
Hi,
I sent an e-mail about 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. I forgot to mention that
after I change the web_css.jsp to  display:inline; the sub menu started
working at mozilla browser but in the explorer the problem remain. 
 
 
 
.topmenu<%=myColor%>,
    .topmenuon<%=myColor%> {
        font-family: Arial;
        font-size: 11px;
        border-right: 1px;
        padding: 12px 0px 0 0px;
        white-space: nowrap;
    color: #7F7F7F;
  display:block;
  display:inline;
  padding:5px;
    }
    .topmenu<%=myColor%> a,
    .topmenuon<%=myColor%> a {
        font-family: Verdana;
        font-size: 11px;
        border-right: 1px;
        padding: 12px 0px 0 0px;
        white-space: nowrap;
    color: #7F7F7F;
  display:block;
  display:inline;
  padding:5px;
 
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)
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.