By ingox on
I like to have individual frontpages for all the languages. So I did set this in the settings.php:
$conf['i18n_variables'] = array(
'site_frontpage',
);
So I'm able to set an individual frontpage for each language in the site information menu.
Now the problem is that those pages don't work except the default english one.
The other languages get a page not found error. Does this variable not get used for the logo and home ()?
Is there a way to fix it?
Your help is welcome.
Ingo
Comments
more information
I also did run the cron job manually.
Also this link didn't help me.
http://drupal.org/node/313272#comment-1207713
What modules of the i18n are needed?
Ingo
Are you really using D5, or
Are you really using D5, or has this thread been tagged wrongly?
> I like to have individual frontpages (ie. the 'promoted to frontpage' teaser list) for all the languages
As far as I know, the frontpage module does what you want by default. In other words, it ONLY lists nodes which have a language that matches the user's currently chosen language, PLUS it lists nodes which are marked as 'neutral language'.
If the user simply changes their language-choice whilst on the frontpage (using the language selector), the list changes to reflect that language selection.
If you didn't want them to use the language selector, and instead have a menu link for each language frontpage, I think you could set the individual menu items to 'language neutral' so that they display whatever language is chosen. I *think* that is an i18n module option, if you enable the i18n menu module. Not sure about this though - I gave up trying build a multilingual site; there were/are too many bugs, flaws and difficult workarounds.
promoted on frontpage
The publishing option to promote on frontpage didn't make any change.
D5
Yes. I'm on D5.
The frontpage module is quite interesting but is not what I'm looking for.
The frontpage in there is always the same on changing languages.
That fixes only
$conf['i18n_variables'] = array(
'site_frontpage',
);
in the settings.php.
But this variable doesn't get used properly.
I'm able to get the right value in the page.tpl.php using
url(variable_get('site_frontpage', 'node'));
So I'm able to hack the link for the logo. But there are so many other places where the frontpage get used like the breadcrumbs in the forum.
I prefer to fix the homepage for all the places.
Ingo
> Yes. I'm on D5. Sorry I
> Yes. I'm on D5.
Sorry I can't help you much then. I've only ever had experience with D6.
> The frontpage in there is always the same on changing languages.
In D6, if you give each node a specific language (which you need to do when making translations anyway), the frontpage listing automatically only lists the teasers which match the user's language selection. Note that I'm talking about the core frontpage module (the one that uses the 'promoted to frontpage' feature); I'm NOT talking about this 3rd party one: http://drupal.org/project/front
If that is not the way the frontpage and i18n modules work in D5, I think you could build probably such a 'front page' with the Views module, I think.