Community Documentation

HowTo: Different home page (default front page) for each language

Last updated April 12, 2010. Created by mr.baileys on January 11, 2009.
Edited by sandrob, Jose Reyero. Log in to edit this page.

When using Drupal + i18n if your site front page is a node listing, the content for each language will be selected depending on your settings for 'Language selection' (Administer > Languages > Configure > Multilingual system) so nothing else to do on this case.

When using a single node as the front page though, such node won't switch automatically depending on the browser language. For this case, when you want a different node to show up for each language as the home page you need to:

  • Add 'site_frontpage' to the list of multilingual variables.
  • Configure the 'Site front page' option for each language setting up the right node (translation) for each.

Only local images are allowed.

Comments

How to configure 'Site front page'?

Hi,

I figured out to add 'site_front page' to the settings.php file.
But bullet number two - I can't figure out where 'Site front page' should be said - probably because I do not understand the explanation...:-S
Can anyone tell me exactly how to get this little hack working?

Thanks
Martin

same problem.... up

same problem....
up

Setting site information

"Configure the 'Site front page' option for each language setting up the right node (translation) for each."

This referrs to ./admin/settings/site-information.

This is how it should look like if configured properly: http://farm1.static.flickr.com/235/446371032_5066593810.jpg.

Greetings, San

Default frontpage only in one language

On our live page we have it as you say and if you change language, the homepage setting changes with it - spain.on-map.net - and every language has it's own homepage.
However on our recent created up-to-date local site, this doesn't happen anymore. The setting of the last language is being used for all the languages. So if I update the German version I also get the german version on the NL homepage and EN, ES, etc... When I adapt the italian version it goes to the rest....
Anyone came upon this problem as well?

Both live and local are Drupal 6.17 with
internationalization (i18n) - 6.x-1.5 and
Internationalization Views 6.x-2.0

I started with Drupal in 2007 and then my life got stuck...

Solved!

Woow wooow....
Misteriously solved activation some module elements. Don't remember which, were too many. Compared live and local, and partially sinchronized them.

I wish all Drupal problems had this kind of solution...

I started with Drupal in 2007 and then my life got stuck...

If not all language's front pages are correct …

I wanted to change my live site to localized front pages. So I edited the config.php and changed the front page at admin/settings/site-information. Worked fine, but only on the English page, the German one still displayed the old front page.

In contrast to my local installation, where everything went fine, I had to change the front page settings <strong>de/admin/settings/site-information as well.

This was not necessary on my local installation because both pages were called the same (just one with a trailing de/). Dito on my live site, but Drupal didn't seem to care ;)

Hope this helps someone.

Possible solution

I'm using PathAuto module.
So, for every node in different languages, I've assinged them the same path. For example:

mysite.com/en/index.html
mysite.com/pt-pt/index.html

I've assigned "index.html" for every node, in different languages, that must appear in the frontpage.
Then, in the site configuration information, I've set "index.html" as the path for the default homepage.

It worked for me!

Worker for me too, but I have a problem...

Ok, this topic is very interesting and it is exactly with this issue I am having problems. The above tips worked for me too, even without including Multilingual Variables.

I set my home page, in the native language such as "home. " Based on this information, I created a page called "home" whose content is displayed through views, which is exactly what the page is displayed as the front page for the native language.

It happens that the content of my site is different and not everything that is available to the first language will be available for the second language. Thus, I created a page called "language/home", with only the views whose content is translated (this page features less content).

It turns out that Drupal is exhibiting for the second language, the page called "home"that should be available only to the first language.

Knowing that lack this detail for me to just download the website, what should I do to the page I created, called "language / home" is interpreted as the front page for my second language?

Based on this information, I created a topic at this address, but I'm not finding solutions.

Can anyone help me?

Thanks.

Edit: I solved the problem by following these instructions. Thanks.

Astuto (Sergio)

single node front page, views front page

more useful info for different "default front page", "front page with single node" and "front page with the views" for each language:
http://psdtucss.com/drupal/multilingual-home-page-in-drupal-6/

personal work at converting psd to drupal, joomla,wordpress,phpbb, xhtml+css etc.
http://www.psdtucss.com

Thanks Frank

The advice on your web site worked for me. I wanted to replace the default home page with an enabled frontpage view. So just adding the filter for Node translation: language = User's current language, did the trick.

DrupalCamp Ballyvaughan (Ireland) 15th & 16th of May 2010
http://groups.drupal.org/node/48164

Although this is talking to

Although this is talking to drupal6, I guess drupal7 is similar.

I just published content and with translated node to front page but all languages are shown on the front page.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x

Multilingual Guide

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.