Hey, I want to use a TreeMultiselectField like this
in the frontend.
But I want to set the selectable objects with a query, like $objects = DataObject::get('Group', ...);
There is no relation between the objects in the dropdown and the page.
How can I implement it?
Perhaps something like this?
$dropdown = new TreeDropdownField(...);
$dropdown->setObjects($objects);