Copied to clipboard

Flag this post as spam?

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


  • Joel 40 posts 62 karma points
    May 18, 2011 @ 14:20
    Joel
    0

    XSLT multi-language menu

    Hi, I got a website with multiple languages, but I can't figure out how to create a correct xslt menu.

    root (languageselector)
    - Home (nl) 
       |- page 1
       |- page 2
       |- page 3
    - Home (en)
       |- page 1
       |- page 2

    The url to a language is www.website.com/nl  or www.website.com/en. The root forwards the visitor to the correct language, depending on his language setting.

    How can I make sure, the xslt is only showing the items of the selected language?

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 18, 2011 @ 22:27
    Jan Skovgaard
    0

    Hi Joel

    What does your current navigation XSLT navigation look like?

    If you have setup the hostnames on the Home nodes (Set them by choosing "Manage hostnames", by right clicking the nodes) and making sure it's also been setup properly in IIS you should not need to make any changes unless you some specific text that is related to the navigation like "menu" or something like that...then you should make use of dictionary items.

    Hope this helps.

    /Jan

  • Joel 40 posts 62 karma points
    May 19, 2011 @ 09:48
    Joel
    0

    Thanks for the reply.

    I managed to sovle the problem by using @level=2 instead of @level=1

    <xsl:with-param name="parent" select="$currentPage/ancestor-or-self::* [@isDoc and @level=2]"/>

    Did need to tick the box at 'Skip testing' as it otherwise gives an error.

Please Sign in or register to post replies

Write your reply to:

Draft