mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 15:05:54 +00:00
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:
parent
6f534f5943
commit
6c91c62ec0
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user