-
- 136 Posts
I do have one version of this working, but now left it 2 weeks and fogot everything!
Cant load wiki at the moment just keeps timing out.
I am doing a different <ul> menu at the bottom of my page and cant for the life of me figure out how to add a class to the <ul>
Is it poss? what template should I generate can someone give me an example?
the menu output I need is (ignore the div bit) Many many thanks.
<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="#" id="current">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>
simon
-
- 136 Posts
thats exactly what I`m after, sorry for the dumb post couldnt get on wikki due to time out.
also if anyone is looking at this its
<ul id="footers">[+wf.wrapper+]</ul>
you missed the +, but really thanks got my head around it again now.
cheers
simon
I have a similar but slightly different requirement. I need to have each inner ul element have a unique ID. Now I can easily enough get the actual a elements to have unique IDs, but this is a little different. I hacked DropMenu once to do that, it simply incremented a value on each loop, and made IDs of id="inner1" and id="inner2" etc for all the ul elements. Wayfinder is a bit more complex. I have no doubt that I’ll figure it out eventually, but if anybody else has had a similar need, I’d be happy to hear how you handled it. Even unique IDs for each li element would do the trick.
-
- 786 Posts
Susan,
I don’t think there is a way to get it on the ul (not sure without going back into the code though), but to get a unique id on each li, set the parameter &rowIdPrefix=`some prefix`
This will then output a unique id consisting of some prefix + docId for each li.
I’m pretty sure that gets put in the <a> tag, which doesn’t help.
I figured that the best way to handle the situation would be to manually create the top-level menu (that most likely doesn’t change anyway) and have a separate Wayfinder call for each submenu, setting the ID in the outer template for each submenu’s main UL. That way you can have a regular main menu bar, but have each submenu be styled differently.
Don’t know where I got the idea that they went in the a tags. Thanks.