You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class ModuleSiteTreeExtension extends DataExtension {
22
24
@@ -44,34 +46,36 @@ class ModuleSiteTreeExtension extends DataExtension {
44
46
* @return FieldList obj
45
47
**/
46
48
publicfunctionupdateCMSFields(FieldList$fields){
47
-
48
-
// inherit field
49
-
$fields->addFieldToTab("Root.Modules", $inheritField = CheckboxField::create('InheritModules','Inherit modules')->setDescription('Inherit <strong>all</strong> modules from the parent page. If the parent page is also set to inherit, then we go further up the hierarchy.'));
$fields->addFieldToTab($tab_name, $inherit_field = CheckboxField::create('InheritModules','Inherit modules')->setDescription('Inherit <strong>all</strong> modules from the parent page. If the parent page is also set to inherit, then we go further up the hierarchy.'));
59
+
60
+
// When we inherit, the page's modules become irrelevant
user_error("Trying to call module position \"".$alias."\"but this doesn't exist. Make sure you have setup your custom positions in your config.yml",E_USER_NOTICE);
113
+
user_error("Module position \"".$alias."\" doesn't exist. Have setup your custom positions in your config.yml?",E_USER_NOTICE);
105
114
}
106
115
107
116
// get this page's module list for specified position
0 commit comments