NEW Adding support for Translatable

At the moment, when using Translatable on a site, if you use the Tranlate tab to create a translated version of the page, the WidgetAreaID is retained and you experience the same issue as reported in #58

Related to: #59
This commit is contained in:
Thomas Speak 2013-08-08 14:28:11 +01:00
parent 6f534f5943
commit 6c91c62ec0
1 changed files with 8 additions and 0 deletions

View File

@ -48,4 +48,12 @@ class WidgetPageExtension extends DataExtension {
}
}
/**
* Support Translatable so that we don't link WidgetAreas across translations
*/
public function onTranslatableCreate() {
//reset the sidebar ID
$this->owner->SideBarID = 0;
}
}