|
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 -----Original Message----- 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
Ghislain
CUSSONNEAU La Poste - DIPM CAP 44, Rue
Marcel Sembat 44000 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) |
