Hide children from the CMS sitetree and allow management through a Versioned GridField. Think _BlogHolder_ but flexible and for any page type.
Hide children from the CMS sitetree and allow management through a Versioned GridField.
Think BlogHolder
but flexible and for any page type.
ExcludeChildren https://github.com/micschk/silverstripe-excludechildren
Tested in SilverStripe 3.0, 3.1
PageHolderExtension
to Pages you want to use as holder pages.class AttorneysPage extends Page {
private static $extensions = array(
'PageHolderExtension'
);
private static $excluded_children = array('Attorney');
}
By default, PageHolderExtension
will add GridField(s) to Root.Main, before the Metadata field.
Override this behavior through the $pageholder_tab and $pageholder_insertBefore statics.
class AttorneysPage extends Page {
private static $pageholder_tab = 'Root.Attorneys';
private static $pageholder_insertBefore = 'settings';
...
}
Or, through YAML Configuration
---
AttorneysPage:
pageholder_tab: Root.Attorneys
pageholder_insertBefore: settings
PageHolderExtension
infers the GridField title from the plural name of the
child class. Set with the $plural_name static.
class Attorney extends ChildPage
{
private static $plural_name = 'Attorneys';
...
}
Or, through YAML Configuration
---
Attorney:
plural_name: Attorneys
PageHolder provides an enhanced turn-key implementation of
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem