A SilverStripe form field for adding nested checkboxes using parent and child dataobjects
This field will produce a set of nested checkboxes.
The source can be a Hierarchy
of dataobjects, or a multi dimensional array.
The values can be a be an array or a string.
$field = HierarchicalCheckboxSetField::create("Pages", "Pages",
Page::get()
->filter("ParentID", 0),
"Children",
Page::get()
->filter("ParentID", 0)
->filter("ShowInMenus", true)
->map('ID','ID')
->toArray()
);
$field->setChildSort("Title DESC");
$field->setChildFilter("ShowInSearch = 1");
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