Multilingual Front Page with Panels 2

One of the must-haves when you make a multilingual site is a custom front page for ever language.
There different ways of doing this, but I just discovered the first one I really like. (thanx to Earl Miles!)

If you have i18n set up and panels2 installed, you might want to try this:

The basic english front page
- create content > panel
- choose a single column
- give it a title, choose the language (e.g. english) and give it a teaser.
- click submit and choose 'Panel content'
- click the plus-sign and choose "New custom content"
- give it a title and a body and click "add pane"

You now have an simple panels-node (e.g. node #13) with the drupal path "en/node/13"

Now comes the good part...

The basic german front page
On "en/node/13" there's a tab that says "translation"!

- click "translation" ("en/node/13/translation")
- In my case it says "German, Not translated, create translation, select node"
- click "create translation"
- choose a single column again
- give it a title, choose the language (this time it's german) and give it another teaser.
- click submit and choose 'Panel content'
- click the plus-sign and choose "New custom content"
- give it a title and a body and click "add pane"

That's all Folks!

Another Way

light-blue - May 29, 2008 - 07:42

For the life of me, I couldn't make this work with multiple panels for each language-specific home page, so I came up with an alternate solution using views, which simply translates the elements from the main page into the active language. The details are here (http://drupal.org/node/108117#comment-860000), in case it helps you.

One possible step forgotten

cfmcoder - June 15, 2008 - 06:40

Make sure that you enable internationalization of the panel node by going to admin/content/types/panel and setting the Multilingual Content option to Normal or Extended.

How does this help?

mErilainen - August 29, 2008 - 15:11

I don't see the use of this. I guess after creating these panels, you need to choose one of these nodes as the main home page under site information? So even if I have German as chosen language and I click home page, it will show me it in English (if I put that panel node to the default home page).

 
 

Drupal is a registered trademark of Dries Buytaert.