pimcore / admin-ui-classic-bundle

Other
11 stars 99 forks source link

Passing Additional Values to pimcore_admin_dataobject_dataobject_add #758

Open cancan101 opened 2 days ago

cancan101 commented 2 days ago

There is no way to pass additional values to be set on a new Object when calling pimcore_admin_dataobject_dataobject_add: https://github.com/pimcore/admin-ui-classic-bundle/blob/c97ec8c592173bbc5e3a496a0857b6dc8c4ef169/src/Controller/Admin/DataObject/DataObjectController.php#L869-L885

This means that if we want to extend the create form on the front end UI (e.g. in manyToManyObjectRelation) to capture additional fields, we would need to copy and paste the entire route.

https://github.com/pimcore/admin-ui-classic-bundle/blob/0da795102695a87cde0bee30bb4d2d7fd67a7074/public/js/pimcore/object/tags/manyToManyObjectRelation.js#L192-L204