Looking good.
It would need some more work for your third level item to show!
Hello All, I see no one has posted here for a while but I have a problem that I have been scratching my head over for a while now so hope someone picks this up.
Here is the issue:
I am using the dropline menu solution povided above which works great, thanks for that. With some css I have got each of my menu items color coded. However to get the sub menu background coded the same color I need to add an "id" to each sub ul. However I can’t seem to do this. For the color coded menu items I have added class="[+wf.title+]" (I’ll change this to [+wf.link+] once I have implemented friendly url’s). However in the $innerTpl if I add ’@CODE:<ul id="[+wf.title+]" [+wf.classes+]> the id remains blank. How can I call this or better yet add a unique ID based on some other parameter.
Thanks in advance
Alastair
Alastair
-
☆ A M B ☆
- 24,524 Posts
I did this by giving every row item a unique ID using the [+wf.id+] placeholder and the &rowIdPrefix placeholder, so each item has an ID of "rowxx", where the xx is the resource ID. Then in the CSS I manually shifted the leftmost item of each submenu over as far as necessary to center the submenu on the parent menu item.
If someone has a better way to do this, I would be very happy to hear about it.
Hi, thanks for the reply. I tried id="[+wf.id+]" but the ID still remains blank, as you say becuase it is a wrapper. I’ll keep going and try other solutions, but any help would be appreciated. I’ll post the solution if I manage to do it.
This would also solve the solution of the centered sub navigation as you can set the width of the <ul> and then pad left as required, subtracting the padding from the width, something like this:
#nav ul #YourID {width:960px; background-color:#00a5ad;padding-left:400px; width:560px;}
Alastair