The use case: a multilingual Drupal 7 site, with each language having a different node to serve as front page. Each of the nodes have the same URL alias "home". Setting the homepage to the "home" URL does not work, since the Path module is returning the first match it finds, causing the wrong translation to be shown for all but one language.

The solution is in the i18n_variables module which is a part of the Internationalization module. This module allows to customize the front page variable for every language separately.

We have to let Drupal know that the front page URL needs to be a multilingual variable. This can be done in Configuration » Regional and language » Multilingual settings » Variables (admin/config/regional/i18n/variable). The variable is called "Default front page"; place a checkmark in front of it and save.

Now when you go to the Site Information administration page at Configuration » System » Site information (admin/config/system/site-information) you can switch between all available languages and set the front page for each one separately. Make sure you use the original node URLs (eg. node/24), not any aliases you might have set.

Share this
Tags:
  1. Anonymous (not verified) on Thu, 10/13/2011 - 16:53

    UNGLAUBLICH!
    Da muss erst mal einer drauf kommen!
    VIIIIIEEEELEEENNN DANK!!!

    Hatte schon ein komplzierten Work-Around in PHP gebastelt.

    Diese Variante ist wesentlich eleganter.

  2. lolek (not verified) on Sun, 10/16/2011 - 13:06

    THANKS SO MUCH !!!

  3. Anonymous (not verified) on Tue, 10/18/2011 - 14:06

    Thank you very much!

  4. Anonymous (not verified) on Thu, 11/03/2011 - 03:41

    thanks a lot...

  5. Anonymous (not verified) on Tue, 01/17/2012 - 23:42

    thanks for working solution

  6. Anonymous (not verified) on Tue, 01/31/2012 - 20:36

    I've been messing with it for hours!
    Your post saved me from spending many more trying to find out how to do it!

    THANK YOU A THOUSAND TIMES!

  7. Post new comment

    The content of this field is kept private and will not be shown publicly.
    • Web page addresses and e-mail addresses turn into links automatically.
    • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
    • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or "class="OPTIONS" title="the title".
    • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
    • Lines and paragraphs break automatically.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.