Copied to clipboard

Flag this post as spam?

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


  • Gísli Freyr Svavarsson 1 post 21 karma points
    Mar 01, 2012 @ 17:18
    GĂ­sli Freyr Svavarsson
    0

    Different URL folder path depending on language.

    hi, can anyone help me? 

    I've got this site that's in three different languages (english, german and french). How to i set the link folder-path to diffrent folders depending on the language selected?

    i got the basic xslt down. 

        <xsl:variable name="langSelectDic" select="umbraco.library:GetDictionaryItem('web-lang-select-dic')"/>

     

    <xsl:variable name="package-target2">
    <xsl:if test="$langSelectDic = 'en'">/en/folder/</xsl:if>
    <xsl:if test="$langSelectDic = 'de'">/de/folder/</xsl:if>
    <xsl:if test="$langSelectDic = 'fr'">/fr/folder/</xsl:if>
    </xsl:variable>

    now what? :S

     

  • Mike Chambers 621 posts 1203 karma points c-trib
    Mar 02, 2012 @ 10:09
    Mike Chambers
    0

    if you already have you site stucture set up as /en/... /de/.... /fr/....

    then think what you may be looking for is in the web.config

    <add key="umbracoHideTopLevelNodeFromPath" value="false" /> then niceurl will automatically include the top level node in the url... 

  • 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