Is it possible to define treeview as default in object field?


our customers prefer to use the ‘treeview’ when editing content in an Object-field.
Is it possible to activate this by default, so that they don’t have to select it first?


The fastest way would be to copy the core field into path/to/cockpit/config/tags/field-object.tag to overwrite it and to change that line in the modified field tp mode: 'tree'.

Another option would be to send a pull request with a similar behavior like the wysiwyg field or the html field to provide a javascript event to modify the default options before initialization.

Thanks @raffaelj the first solution worked like charme!