Copied to clipboard

Flag this post as spam?

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


  • Simone Chiaretta 134 posts 541 karma points c-trib
    May 19, 2010 @ 09:37
    Simone Chiaretta
    0

    Multilinguagual site with umbraco, with language as subfolders and just one document per language

    Hi all,

    I need to implement a site that is multilanguage (at the moment Italian and English) but that runs both on subfolders and has a single document per "page".

    What I mean is that I more less what a mix between the 1:1 sites explained here http://umbraco.org/documentation/books/multilingual-11-sites and the "multilingual site in one domain" explained here: http://our.umbraco.org/wiki/how-tos/running-multi-lingual-sites-under-a-single-domain 

    Is it possibile? is there a way to do it?

    Thank you

    Simone

  • Comment author was deleted

    May 19, 2010 @ 10:31

    Hi Simone,

    Not sure I can follow you here, can you shed some light on your structure?

    is it like this?

    - Content

    -- Home EN

    --- Subpage

    --- Subpage 2

    -- Home Other language

    --- Subpage

    --- Subpage 2

  • Simone Chiaretta 134 posts 541 karma points c-trib
    May 19, 2010 @ 10:41
    Simone Chiaretta
    0

    Yes, exactly

    - Content
    -- Home EN
    --- Subpage
    --- Subpage 2

    -- Home IT
    --- Subpage
    --- Subpage 2

    But I don't want to have different subdomains, just different subfolders... also I want to be able to have the translations directly inside the node

  • Comment author was deleted

    May 19, 2010 @ 11:22

    Hi Simone,

    Sure just use a dummy domain to assign the language to the pages.

    So first add italian to the languages tree in the settings sections

    Then go back to content and right click you home it page, select manage hostname and use a dummy domain (like dummy.it) to link the language to the node structure

    Same for the english part of your site, use a dummy domain to link a language to the node structure

    THis will make sure that the culture is set correctly (for using dictionary items,...)

     

     

  • Simone Chiaretta 134 posts 541 karma points c-trib
    May 19, 2010 @ 11:28
    Simone Chiaretta
    0

    Problem is:

    when I do domain.ext/it/chi-siamo.aspx I get this error:

    No umbraco document matches the url 'http://www.nhday.eu/it/chi-siamo.aspx'

    umbraco tried this to match it using this xpath query'/root/node/node [@urlName = "it"]/node [@urlName = "chi-siamo"] | /root/node [@urlName = "chi-siamo"]')

    Simo

  • Comment author was deleted

    May 19, 2010 @ 11:37

    Hi Simone,

    By default umbraco won't include the top level nodes in the url.

    You can change that behaviour in the app settings of the web.config (umbracoHideTopLevelNodeFromPath)

     

  • Simone Chiaretta 134 posts 541 karma points c-trib
    May 19, 2010 @ 11:47
    Simone Chiaretta
    0

    ok...Thank you

    that's a first step :) But what will appear then when I just do nhday.eu?

    But I really wanted was not to have 2 real "trees", but just one and have different translations of the same node: but I don't want to choose the language based on some cookie, but based on the folder I'm in.

  • Comment author was deleted

    May 19, 2010 @ 11:50

    then you simply go to the first page in the node tree

  • Casey Neehouse 1339 posts 483 karma points MVP 2x admin
    May 19, 2010 @ 17:54
    Casey Neehouse
    0

    I have seen problems of using the multi-lingual setup if a true hostname is assigned at level 1.  It will use it over the fake entries. 

    Thus, be sure the only entries in the site tree are for the language hostname.

    Case

     

  • Simone Chiaretta 134 posts 541 karma points c-trib
    May 20, 2010 @ 10:19
    Simone Chiaretta
    0

    Thank you

    It was the <add key="umbracoHideTopLevelNodeFromPath" value="false" /> key missing.

    It was not what I wanted to accomplish, but for the moment it works :)

Please Sign in or register to post replies

Write your reply to:

Draft