hey again!
since hours and hours i’m trying to understand the wayfinder so i can effectively use it for my purposes. there are some things i just don’t understand and cannot find in the documentation (muddydogpaws.com/modxcms.com).
ok, here’s the code i use in my template:
[[Wayfinder?
&startId=`0`
&level=`2`
&parentClass=`hide`
&parentRowTpl=`wfParentRow`
&outerTpl=`wfOuter`
&innerTpl=`wfInner`
&rowTpl=`wfRow`
&outerClass=`menu`
]]
the css for now is implemented directly into my template and looks like this:
/* ================================================================
This copyright notice must be untouched at all times.
The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/simple_dropline.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any
way to fit your requirements.
=================================================================== */
/* for this demo only */
#menu {margin:20px 0 80px 0;}
/* the styling */
#menu {width:750px; height:20px; background:#000; position:relative;}
#menu .select, #menu .current {margin:0; padding:0; list-style:none;}
#menu li {display:inline; margin:0; padding:0; height:auto;}
#menu .select a,
#menu .current a {display:block; height:20px; float:left; background:#000; padding:0 10px 0 10px; text-decoration:none; font-size:12px; line-height:20px; white-space:nowrap; border-right:1px solid #fff; color:#fff;}
* html #menu .select a, * html #menu .current a {width:1px; height:21px;}
#menu .select a:hover,
#menu .select li:hover a {background:#888; cursor:pointer; color:#ff0;}
#menu .sub {display:none;}
/* for IE5.5 and IE6 only */
#menu table {position:absolute; border-collapse:collapse; left:0; top:0;}
#menu .current a {background:#666; color:#ff0;}
#menu .sub li a:hover,
#menu .select a:hover .sub li a:hover,
#menu .select li:hover .sub li a:hover {background:#888; color:#ff0;}
#menu .sub_active .current_sub a,
#menu .sub_active a:hover {background:#666; color:#ff0;}
#menu .select li a:hover .sub,
#menu .select li:hover .sub {display:block; position:absolute; width:750px; top:20px; left:0; background:#888; margin-top:0; padding:0; z-index:100; color:#fff; font-size:11px;}
#menu .sub, #menu .sub_active {margin:0; padding:0; list-style:none;}
#menu .sub_active {display:block; position:absolute; width:750px; top:20px; left:0; background:#666; margin-top:0; padding:0; z-index:10;}
* html #menu .sub_active, * html #menu .select a:hover .sub {z-index:-1; margin-top:0; margin-t\op:1px;}
#menu .sub_active a {height:21px; text-decoration:none; line-height:20px; white-space:nowrap; display:block; float:left; background:#666; padding:5px 10px 10px 10px; margin:0; font-size:12px; white-space:nowrap; border:0; color:#fff;}
#menu .select a:hover .sub li a,
#menu .select li:hover .sub li a {display:block; background:#888; padding:5px 10px 10px 10px; margin:0; white-space:nowrap; border:0; color:#fff; font-size:12px;}
and this is an excerpt of the generated page:
<div class="navigation" id="navigation">
<div class="menu">
<ul>
<li class="active"><a href="http://localhost:8888/modx/" title="Vanga Testsite 1">testsite1</a></li>
<li><a class="hide" href="/modx/index.php?id=3" title="Vanga Testsite 2">testsite2</a>
<ul>
<li><a href="/modx/index.php?id=6" title="submenu level 2">submenu 2</a></li>
</ul>
</li>
<li class="last"><a href="/modx/index.php?id=4" title="Vanga Testsite 3">testsite3</a></li>
</ul>
</div>
</div>
what i don’t get is where classes like "active" or "hide" are coming from? and what the do?
i really try to understand it but cannot sort it out :-(
best
firewireflow