$insertBefore list with names of elements

Silverstripe Version: 4.3.3

I can define a position of an element with addFieldToTab and use $insertBefore Content to place it before the content element. Is there a complete list with element names for the function getCMSFields() and also the function getSettingsFields()?
I need to insert a CheckboxField on the Root.Settings before the “Show in Menu” CheckboxField.

You should be able to see the element names if you look at the markup of the page.

As an example, this should add a checkbox before the ‘Show in menus’:

    public function updateSettingsFields(FieldList $fields)
                ->setTitle(_t(__CLASS__ . '.MyField', 'Check this box'))
            , 'ShowInMenus');
1 Like

Thank you very much!!!