|
Hi all, I’ve to use my css for the main_menu. It works for all my link, but not for the first, the
Home page link…. Colud you help me, please Thanks Ciao Gioele <content:absoluteContainerList
name="topMenu" id="topMenu" pageLevel="1"> <% String homePageTitle =
TextHtml.text2html(jData.gui().getContentHomePage().getTitle(jData.params())); if (homePageTitle==null){ homePageTitle =""; } %> <content:container
id="topMenuContainer"> <content:pageField
valueId="topLink" name="topLink"/> <content:sharedLangTextField
valueId="myColorSet" name="colorSet" defaultValue="<%=colorSet%>"
display="false"/> <logic:notEmpty
name="topLink"> <bean:define
id="classpath" value="topmenu"/> <logic:equal
name="topLink" property="inCurrentPagePath"
value="true"> <bean:define
id="classpath" value="topmenuon"/> </logic:equal> <% PageBean topLinkBean =
(PageBean) pageContext.findAttribute("topLink"); JahiaPage topLink =
topLinkBean.getJahiaPage(); String myColorSet =
(String) pageContext.findAttribute("myColorSet"); menuCount++; String > String > if (enablePopup) { onmouseover +=
"ypSlideOutMenu.showMenu('menu" + menuCount + "');"; onmouseout +=
"ypSlideOutMenu.hideMenu('menu" + menuCount + "');"; } if ( !
jData.gui().isPageInPath(topLink.getID()) ){ onmouseover += "topOn"
+ myColorSet + "('menu" + menuCount + "');"; onmouseout +=
"topOff('menu" + menuCount + "');"; } %> <td NOWRAP> <DIV
ID="tool3nav"> <UL>
<LI
><a href="" name='topLink'
property='url'/>"<% if
(! "".equals(onmouseover)) { %> > } if
(! "".equals(onmouseout)) { %> > } %>><bean:write
name="topLink" property="title"
filter="false"/> <logic:notPresent
name="topLink"
property="title">null</logic:notPresent> </a></LI
> <jahiaHtml:actionMenu
name="topMenuContainer" namePostFix="" resourceBundle="jahiatemplates.Corporate_portal_templates"
useFieldSet="false"> </jahiaHtml:actionMenu> </UL> </DIV> </td> <% if (enablePopup && topLink !=
null){ div.append("<div id=\"menu").append(menuCount).append("Container\">\n"); div.append("<table
+ myColorSet + "('menu" + menuCount +
"');\" "); div.append("
+ menuCount + "');\" cellpadding=\"0\"
cellspacing=\"0\" border=\"0\">\n"); div.append("<tr
valign=\"top\">\n"); div.append(" <td
nowrap=\"nowrap\">\n"); div.append(" <div
id=\"menu").append(menuCount).append("Content\" class=\"menu"
+ myColorSet + "\">\n"); div.append("
<div class=\"options" + myColorSet + "\">\n"); int subMenuCount = 0; int subMenuWidth = 0; JahiaContainerList
linkContainerList = jData.containers().getAbsoluteContainerList(
"linkContainer", topLink.getID() ); if (linkContainerList != null) { Enumeration myContainerList =
linkContainerList.getContainers(); while
(myContainerList.hasMoreElements()) { JahiaContainer
myContainer = (JahiaContainer) myContainerList.nextElement(); JahiaPage myLink =
(JahiaPage) myContainer.getFieldObject( "link" ); if (myLink != null){ subMenuCount++; div.append(" <a href=""> if (myLink.getTitle()
!= null) { int w =
myLink.getTitle().length() * 6 + 30; if (w >
subMenuWidth) { subMenuWidth
= w; } } } } } div.append("
</div>\n"); div.append("
</div>\n"); div.append("
</td>\n");
div.append("</tr>\n"); div.append("</table>\n");
div.append("</div>\n"); callJs.append("new
ypSlideOutMenu(\"menu").append(menuCount); callJs.append("\",
\"down\", "); callJs.append(
"getX('menu" + menuCount + "')" ); // left callJs.append(", "); callJs.append(
"getY('menu" + menuCount + "')" ); // top callJs.append(", " +
subMenuWidth + ", "); // width callJs.append(subMenuCount *
50); //heigh callJs.append(");\n"); } %> </logic:notEmpty> </content:container> <logic:equal name="topMenu"
property="actionURIsEmpty" value="false"> <td
class="topmenubuttons"> <jahiaHtml:actionMenu
name="topMenu" namePostFix=""
resourceBundle="jahiatemplates.Corporate_portal_templates" useFieldSet="false"
actionIcon='<%=theURL + "/images/add.gif"%>'> </jahiaHtml:actionMenu> </td> </logic:equal> </content:absoluteContainerList> |
