We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9920
    • 17 Posts
    Hi

    The dropdown menu in the modxhost template seems not to work with more than one sublevel. If I want to set a menu item which is in the third level, it appears only in the background of the dropdown, but I want it to appear on the ride side like in

    http://www.muddydogpaws.com/development/wayfinder/examples/example-1.html

    You find my site here

    www.tvhochwald.ch/tvmodx go to Fotos --> Turnverein, then a menu "Eierlesen" appears in the background.

    Can anyone help me how I should change the Chunks or the css file?


    The snippet call:
    <div id="ajaxmenu"> [[Wayfinder?startId=`0` &cssTpl=`tv.css` &outerTpl=`tv.OuterTpl` &innerTpl=`tv.InnerTpl` &rowTpl=`tv.RowTpl` &innerRowTpl=`tv.InnerRowTpl` &firstClass=`first` &hereClass=``]] </div>


    the modxmenu.css looks like this
    #ajaxmenu ul {
    	margin: 0;
    	padding: 0;
    	list-style: none;
    	}
    
    #ajaxmenu ul li {
    	position: relative;
    	float: left;
    	width:111px;
    	display: block;
    	text-decoration: none;
    	text-align: center;
    	font-weight: normal;
    }
    	
    #ajaxmenu ul li ul {
    	position: absolute;
    	left: 0; /* Set 1px less than menu width */
    	top:28px;
    	line-height: 16px;
    
    	}
    #ajaxmenu ul li a {
    	color: #ffffff;
    	font-weight: bold;
    }
    
    
    
    /* Styles for Menu Items */
    #ajaxmenu ul li.firstcategory {
    
    	color: #ffffff;
    	font-weight: bold;
    	height: 28px;
    	line-height: 28px;
    	padding-right: 0px;
    	padding-left: 0px;
    	background-image: url(images/array_332x28.jpg);
    	background-repeat: no-repeat;
    	background-position: 0px;
    	margin: 0px;
    
    	}
    #ajaxmenu ul li.category {
    	color: #ffffff;
    	font-weight: bold;
    	height: 28px;
    	line-height: 28px;
    	padding-right: 0px;
    	padding-left: 0px;
    	background-image: url(images/array_332x28.jpg);
    	background-repeat: no-repeat;
    	background-position: -111px;
    	margin: 0px;
    
    	}
    #ajaxmenu ul li.lastcategory {
    	color: #ffffff;
    	font-weight: bold;
    	height: 28px;
    	line-height: 28px;
    	padding-right: 0px;
    	padding-left: 0px;
    	background-image: url(images/array_332x28.jpg);
    	background-repeat: no-repeat;
    	background-position: -222px;
    	margin: 0px;
    
    	}
    
    
    #ajaxmenu ul li.firstcategory:hover, #ajaxmenu ul li.firstcategory.over {
    	color: #fff;
    	background-image: url(images/array_332x28_roll.jpg);
    }
    
    #ajaxmenu ul li.category:hover, #ajaxmenu ul li.category.over {
    	color: #fff;
    	background-image: url(images/array_332x28_roll.jpg);
    }
    #ajaxmenu ul li.lastcategory:hover, #ajaxmenu ul li.lastcategory.over {
    	color: #fff;
    	background-image: url(images/array_332x28_roll.jpg);
    }
    
    /* commented backslash \*/ 
    * html ul li a {height:1%}
    /* end hack */ 
    #ajaxmenu li a {
    	text-decoration: none;
    }
    
    /* hovered lists */
    #ajaxmenu li a, #ajaxmenu li.over a {
    	color: #fff;
    	width: 111px;
    	display: block;
    
    }
    #ajaxmenu li li a:hover, #ajaxmenu li.over li a:hover {
    	background-image: url(images/bullet_11x8_rolltra.png)  !important;
    	color: #fff;
    	background-repeat: no-repeat;
    	/*background-color: #8dbc00;*/
    	background-position: left center;
    	text-indent: 8pt;
    }
    
    /* set dropdown */
    #ajaxmenu li li a, #ajaxmenu li.over li a {
    	color: #ffffff;
    	background-image: url(images/bullet_11x8tra.png) !important;
    	background-repeat: no-repeat !important;
    	text-align: left;
    	border-right: 1px solid #2f2f2f;
    	border-bottom: 1px solid #2f2f2f;
    	border-left: 1px solid #2f2f2f;
    	font-weight: normal;
    	width: 172px;
    	/*background-color: #000000;*/
    	background-position: left center;
    	text-indent: 8pt;
    }
    #ajaxmenu li ul li a {
    	background-image: url(images/sub_color_4x25.jpg);
    	background-repeat: repeat-x;
    	padding-top: 2px;
    	padding-bottom: 2px;
    	padding-right: 5px;
    	padding-left: 5px;
    } /* Sub Menu Styles */
    
    #ajaxmenu li ul, #ajaxmenu li.over ul { 
    	display: block; 
    } /* The pop */
    #ajaxmenu {
    	margin-right: auto;
    	margin-left: auto;
    	width: 781px;
    
    }
    
    #myajaxmenu {
    	position: absolute;
    	top:1px;
    	left: 0px;
    	display: block;
    	z-index: 1000;
    }


    The Chunks:

    &outerTp
      <ul id="myajaxmenu">
        [+wf.wrapper+]
      </ul>


    &innerTpl
    <ul style="display:none">
      [+wf.wrapper+]
    </ul>


    &rowTpl
    <li class="category [+wf.classnames+]"><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>


    &innerRowTpl
    <li[+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>