Jump to content

Recommended Posts

Posted (edited)

Hi all,

A very odd issue this one!

I'm working on a site with 5 languages - English (default), French, German, Spanish and Polish. I have a set of pages set up as a country list (templae='country') which contain various country info like two-letter country code etc and where the page title is the Country name. This is so that I can use the country list in various parts of the site.

When the site is showing in English, Spanish and Polish I can display the country list without an issue. However, when the page is displaying in French or German the country pages seem not to exist. So, this code...

 

$countries = $pages->find("template=country");

foreach ($countries as $country) {
		if ($country) {
		echo $country->title . "<br />";
	}
}

...displays the country list just fine in English, Spanish and Polish but displays nothing in French and German.

Just for extra info, the Title field is set up as PageTitleLanguage and all languages are setup the same.

Any ideas?

TIA.

Edited by prestoav
Solved

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...