This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Is it possible to have a custom relation manager modal.
For instance, i am exposing relations normally utilizing the '.yaml' files. Once a record is clicked it brings the manager modal.
I would like to use a custom '.htm' file in place of the a 'fields.yml' file.
I would also like to remove the 'update' button within the modal as the relation will not be editable.
Last updated
Code syntax
_applications:
label: Applications
manage:
form: @/plugins/project/admin/controllers/project/fields_applications.htm
# list: @/plugins/project/admin/controllers/project/columns_applications.yaml
showSearch: true
view:
# recordUrl: project/admin/project/update/:id
list: @/plugins/project/admin/controllers/project/columns_applications.yaml
toolbarButtons: delete
Last updated
Figured out a solution.
I am utilizing the '.yml' definition, but only including a partial definition.
_answers:
type: partial
path: field_application_answers
The partial has Js that strips the 'Submit' action button in the footer.
<script type="text/javascript">
$(' #{id of modal} .modal-footer button[type=submit]').remove();
</script>
From the partial i can use $formModel to parse the data as wished.
1-3 of 3