Homepage
Main navigation
Main content
Additional information
Login / Sign up
Quality Guidelines
About
GitHub
Propose new content
Winter CMS resources and help articles
Simple and to the point. Optimized by the community.
×
Login / Sign up
Quality Guidelines
About
GitHub
Propose new content
Edit trick
Changes will be published after manual review
Title
Give your trick a describing title. Do
not
start with «How to...».
Your trick
Keep it short and concise! Markdown is supported.
If you want to modify the Relation behavior default Manage Form, just copy the original partial (from `modules/backend/behaviors/relationcontroller/partials/_manage_form.php`) to your controller's partial folder, prefixing "_relation" to the original partial name. Modify to your liking. An example to add a "delete" action is shown below: ```php <button type="button" class="oc-icon-trash-o btn-icon danger m-l-lg" data-request="onRelationButtonDelete" data-request-data="checked:[<?= $relationManageId ?>]" data-request-confirm="<?= e(trans('backend::lang.relation.delete_confirm')) ?>" data-request-success="$(this).trigger('close.oc.popup')"> </button> ``` Starting with Winter v2.1.4, you will be able to override only the following partials: - _manage_form_footer_create.php - _manage_form_footer_update.php - _manage_pivot_footer.php - _pivot_form_footer.php
References
Add additional online resources to your trick
+ Add reference
Topics
If your trick fits more than one topic select multiple. Select at least one.
Backend
Plugin Development
CMS
Twig
Themes
Deployment
Tags
You can use existing tags or create new ones. Add at least one.
Submit for review
Cancel
We use cookies to measure the performance of this website. Do you want to accept these cookies?
Accept
Decline