main menu css

"Zanzico Gioele" <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
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.param
s()));

        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 onmouseover = "";

                String onmouseout = "";

                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="<bean:write name='topLink' property='url'/>"<%

 
if (! "".equals(onmouseover)) {

 
%> onmouseover="<%=onmouseover%>"<%

 
}

 
if (! "".equals(onmouseout)) {

 
%> onmouseout="<%=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 onmouseover=\"topOn" + myColorSet
+ "('menu" + menuCount + "');\" ");

                    div.append("onmouseout=\"topOff('menu" + 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=\"").append(myLink.getURL(jData.params())).append("\">").append(myL
ink.getTitle()).append("</a>\n");

                                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>
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.