Sub menu with or without <span> tag when reaching level 3 menu
Hi,
Hope all of you had a nice weekend.
I have some problems with my sub menu. I need to insert a when there is no level 3 connected to the level 2 menu, and if there is a level 3 connected to menu level 2, no
Here is the code I'm using, and it's working fine, until I click a menu item with a level 3. Then the whole menustructure f**ks up #-o
Sub menu with or without <span> tag when reaching level 3 menu
Hi,
Hope all of you had a nice weekend.
I have some problems with my sub menu. I need to insert a when there is no level 3 connected to the level 2 menu, and if there is a level 3 connected to menu level 2, no
Here is the code I'm using, and it's working fine, until I click a menu item with a level 3. Then the whole menustructure f**ks up #-o
[code]
]>
<>
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">
[/code]
You can see the problem here:
http://v4cms2.jjas.dk/produkter-og-loesninger/komponenter.aspx
The sub menu is correct but the other menu items looks wrong because of the missing
http://v4cms2.jjas.dk/produkter-og-loesninger/totale-mekanik-loesninger.aspx
The menu items looks correct because there is no 3 level sub menu
It's just frustrating, because I think it must be a very simple thing I need to change here. Hope someone can help me.
Hello everybody
Is there really no one that can help me with this one? 8-[
Kind regards,
Niels
Try
Petr
Hi Petr,
It's not working your proposal, but thanks for your reply. What I'm searching is the following.
You running through the list of menu items.
Everytime the XSLT hits a menuitem it check's up if the menu item is active. If it's active it checks if there is a submenu.
If there is a submenu (level 3) connected to the the menu item (level 2), there will be no in the level 2 menu item.
If there is no submenu (level 3) connected to the menu item (level 2), there will be a in the level 2 menu item.
All the other menu items where the submenu (level 3) is not shown or the menu item is not active will have a placed around them.
With the following code there is now, if any of the menu is running with a level 3, all the span's will be gone or the other way active.
I guess it must be ...when test="count... that is wrong here.
I still hope that you or someone can help me solve it, so it can show the menu correctly :)
Thank you all so much.
Kind regards,
Niels
Hi,
I have not time to simulate your content and test it.
Maybe you can try ulimate navigation
http://www.netaddicts.be/articles/the-%27ultimate-navigation%27.aspx
is working on a reply...