636 Posts in 190 Topics by 159 members
|Go to End|
13 September 2009 at 10:27am
Anyone got this problem too?
When I modify an untranslated page behaviour (ClassName), the translated pages keep the original behaviour (ClassName) so I end up with un untranslated page ( getTranslation(s) look for the same ClassName ) .
The problem is outlined with the following code:
$page->hasTranslation($some_locale) = TRUE
$page->getTranslation($some_locale) => NULL
13 September 2009 at 11:14am
works .... changes in the original language page->ClassName are stored in SiteTree not in SiteTree_Live for translated pages. You need to save & publish every translated page to have changes reflected in SiteTree_Live.
13 September 2009 at 6:23pm
Hm, changing the classname in the original page should update all children... there's even a unit test for this:
http://open.silverstripe.com/browser/modules/sapphire/trunk/tests/model/TranslatableTest.php#l675 (Line 675).
But you're right, the changes aren't automatically published - mainly to avoid accidentally publishing changed content on the translations.
|Go to Top|