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.
In some cases, you may want to add or remove columns from a controller's list when extending a plugin. If there are many columns, this can be a lot of work, so it may be better to completely rewrite the definition of the columns. In this case, you can use this snippet in your plugin boot method: ```php YourListController::extend(function ($controller) { $controller->listConfig = $controller->mergeConfig( $controller->listConfig, [ 'list' => '$/myAuthor/myPlugin/config/new_columns.yaml' ] ); }); ``` ⚠ Take care, this can create issues if several plugins modify the controller's list columns definition.
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