We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20288
    • 132 Posts
    Well, I thought I could create a menu with WF pretty easily, but I’m not able to.

    All I’m trying to do is make a simple, 2 level drop down menu. Parent > Child. That’s all.

    Here’s my chunks:
    &outerTpl (named outer)
    <ul id="menu">
         [+wf.wrapper+]
    </ul>
    


    &parentRowTpl (named parentrow)
    <li class="sub"><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
        [+wf.wrapper+]
    </li>
    


    &rowTpl (named row)
    <li><a href="[+wf.link+]">[+wf.linktext+]</a></li>
    


    &innerTpl (named inner)
    <li class[+wf.classes+]><a href="[+wf.link+]">[+wf.linktext+]</a>
        <ul>
        [+wf.wrapper+]
       </ul>
    </li>
    


    &cssTpl (named css)
    <link rel="stylesheet" media="all" type="text/css" href="[(base_url)]assets/templates/bee/css/nav.css" />
    


    &jsTpl (named js)
    <script src="assets/templates/bee/js/iefix.js" type="text/javascript"></script>
    



    And my WF call:
    [!Wayfinder? &startId=`0` &level=`3` &parentRowTpl=`parentrow` &outerTpl=`outer` &innerTpl=`inner` &rowTpl=`row` &cssTpl=`css` &jsTpl=`js`!]
    


    Here’s my CSS:
    #menu {
    list-style-type:none; 
    padding:0; 
    margin:-25px -4px 0 0;
    float:right;
    z-index:1000;
    position:relative;
    width:700px;
    }
    
    #menu ul {
    list-style-type:none; 
    padding:0; 
    margin:0;
    }
    
    #menu li {
    float:left; 
    background:#fdd600; 
    margin:0px 3px 0 0; 
    position:relative;
    }
    #menu li.sub {
    background:#fdd600;
    }
    
    /* for IE5.5 and IE6 only */
    #menu table {
    border-collapse:collapse;
    position:absolute;
    top:0;
    left:0;
    z-index:80;
    font-size:1em;
    }
    
    #menu li a {
    display:block; 
    color:#000; 
    height:25px; 
    font-family:arial, sans-serif; 
    font-size:14px; 
    line-height:24px; 
    width:220px; 
    text-decoration:none; 
    text-align:left;
    padding-left:10px;
    
    }
    
    #menu :hover {
    color:#ee0; 
    background:#988;
    }
    
    #menu :hover > a {
    color:#ccc; 
    background:#333;
    }
    
    #menu ul, 
    #menu :hover ul ul,
    #menu :hover ul :hover ul ul,
    #menu :hover ul :hover ul ul.left {
    position:absolute; 
    left:-9999px; 
    width:128px;
    }
    
    #menu :hover ul{
    left:0;
    top:25px; 
    background:url(transparent.gif);
    } /* the background image is for IE7 */
    
    #menu :hover ul :hover ul,
    #menu :hover ul :hover ul :hover ul {
    padding:0 3px; 
    left:125px; 
    top:-3px;
    }
    
    #menu :hover ul :hover ul.left,
    #menu :hover ul :hover ul :hover ul.left {
    padding:0 3px; 
    left:-131px; 
    top:-3px;
    }
    


    Here’s what it renders:
    http://sandbox.beesustainable.com/index.php?id=1

    And what it should look like:
    http://www.beesustainable.com/new/

    Can anyone help me? Thanks so much.

      • 20288
      • 132 Posts
      Update:

      Nevermind. I had my &innerTpl wrong, and my &cssTpl wasn’t going to the right spot.. fixed now.