mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-06-26 22:39:26 +02:00
Merge pull request #68 from TomSpeak/patch-2
NEW Adding support for Translatable
This commit is contained in:
commit
ea6c9a7a25
|
@ -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…
Reference in New Issue
Block a user