Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Niels Kristiansen 166 posts 382 karma points
    Feb 16, 2009 @ 14:23
    Niels Kristiansen
    0

    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.

  • Niels Kristiansen 166 posts 382 karma points
    Feb 19, 2009 @ 11:58
    Niels Kristiansen
    0

    Hello everybody

    Is there really no one that can help me with this one? 8-[

    Kind regards,
    Niels

  • Petr Snobelt 923 posts 1535 karma points
    Feb 19, 2009 @ 13:54
    Petr Snobelt
    0

    Try




    Petr

  • Niels Kristiansen 166 posts 382 karma points
    Feb 20, 2009 @ 08:59
    Niels Kristiansen
    0

    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

  • Petr Snobelt 923 posts 1535 karma points
    Feb 26, 2009 @ 06:26
    Petr Snobelt
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies