Copied to clipboard

Flag this post as spam?

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

  • gary 385 posts 915 karma points
    Dec 04, 2015 @ 19:22

    Culture & Hostnames Issues

    Hi All

    Simple site in 2 languages.

    Cannot get the culture and hostnames to function correctly.

    Using 2 root nodes at the same level, ie top level and setting the two top nodes to localhostxxx/en and other to localhostxxx/pt and setting culture accordingly gives me a language of en-US, if I call @Model.Content.GetCulture().

    If I leave the top node as is, then add localhostxxx to the second top node, it does recognise the culture changes and the language swaps on the pages between en-US and pt-PT. But there is no navigation in the top half of the site.

    So clearly I am doing something not quite right.

    What I would like to achieve is localhostxxx/page as all parent nodes will have different url's due to the translation.

    Is the answer to drop the sites below one top node? But even then I have to have the culture set, but will the top node keep en-US and the others take the culture as they are not the top node?

    If someone could please advise, would really appreciate it as I seem to be going in circles.

    Will just say that I have read every bit of documentation and somehow, for some reason have ended up here.



Please Sign in or register to post replies

Write your reply to: