Copied to clipboard

Flag this post as spam?

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


  • Matt Taylor 873 posts 2086 karma points
    Jul 21, 2011 @ 22:29
    Matt Taylor
    0

    Curious about the 404 pages in the multi-language starter kit

    I was looking into how to set up the 404 pages for the different sites in my install and I remembered that the multi-language starter kit has different 404 pages for each site.

    I did a quick test and it didn't seem to work so I wondered if it was supposed to and if so, how it is put together.

    I know uComponents have a solution but it's obviously not that.

    Regards,

    Matt

  • Rune Grønkjær 1372 posts 3103 karma points
    Jul 22, 2011 @ 08:43
    Rune Grønkjær
    0

    Hi Matt,

    We are using the built in Umbraco 404 handling, which depends on the settings in the umbracoSettings.config. You just write the language and the page id into the config and it will work. Needs one domain per language though, but so does the dictionary items, so we allways do it that way.

    This is the correct way of writing it:

    <errors>

          <!-- the id of the page that should be shown if the page is not found -->

     <error404>

     <errorPage culture="da-DK">1063</errorPage>

     <errorPage culture="en-GB">1812</errorPage>

          </error404>

        </errors>

    /Rune

  • Matt Taylor 873 posts 2086 karma points
    Jul 22, 2011 @ 09:49
    Matt Taylor
    1

    Thanks Rune,

    I didn't know you could do that. :)

  • Rune Grønkjær 1372 posts 3103 karma points
    Jul 22, 2011 @ 09:51
    Rune Grønkjær
    0

    Yeah, it's totally oldschool. But it works and it's simple for the editors.

    /Rune

Please Sign in or register to post replies

Write your reply to:

Draft