Quote from: latedude32 at Oct 13, 2007, 08:12 PM
Hey guys, thanks for all the replies! I’ve fixed it, but now I’ve gotten to another problem.
Now, my menu is really strange. How do I get my wayfinder to use no css (or basically just use css I had in the css class/div for my menu before)?
You can look at the source code that is generated and reshape you CSS accordingly or you can link to an external file or chunk to dictate how the code built by the Wayfinder is created. See the
MuddyDogPaws.com or the Wiki for examples. It really depends on how you code and style, because we all have our preferences. For my latest site I use the default active class that the Wayfinder automatically creates to style the appearance of a menu item that is currently selected but I also need to remove a background image from the first item in the list.
I use this as my Wayfinder call:
[!Wayfinder?&config=`sitemainmenu`&startId=`[*Parent*]!]
The sitemainmenu code is some php code you can place in assets/snippets/wayfinder/configs (there are some other configuration files you can look at there.)
<?php
$firstClass = 'first';
$lastClass = '';
$hereTpl = '';
$level = '1';
$outerTpl = '@CODE:<ul id="mainnav">[+wf.wrapper+]</ul>';
$rowTpl = '@CODE:<li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>';
?>
In my CSS, I style ul#mainav of course, using also the first class and the active class. There is a lot of flexibility and of course, far more options depending on how you want to style your menu. I’m just beginning to understand it myself.