SilverStipe custom sort field on tree items
composer require a2nt/silverstripe-treemultiselect-sortable-field
private static $many_many = [
'FooterNavigation' => SiteTree::class,
];
private static $many_many_extraFields = [
'FooterNavigation' => [
'SortOrder' => 'Int',
],
];
TreeMultiselectFieldSortable::create(
'SortOrder', // order field name
'FooterNavigation', // relation name
'Footer Navigation', // field title
SiteTree::class // relation objects class name
)
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