You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking for a way to add custom columns to different article types (news, reports, agencies ect), and found out I have to extend from the bundle's ArticleController.
The simple extension off of the class did not work, and I talked to @luca-rath on slack about it. As usual Luca had the solution ready.
During my research before asking on slack, I found many people asking for this as they failed doing so.
My proposal is to extend the documentation to take note of this.
The working approach to make it work:
Add this section to /config/routes/sulu_article_admin.yaml
After this, clear cache and the new overriding class will be used for the articles section in the Admin.
(The approach is in line with the symfony documentation though for some reason the tags need to be added explicitly even if the src/Controller/Admin resource is assigned the tags already somewhere in the services.yaml).
The text was updated successfully, but these errors were encountered:
I was looking for a way to add custom columns to different article types (news, reports, agencies ect), and found out I have to extend from the bundle's
ArticleController
.The simple extension off of the class did not work, and I talked to @luca-rath on slack about it. As usual Luca had the solution ready.
During my research before asking on slack, I found many people asking for this as they failed doing so.
My proposal is to extend the documentation to take note of this.
The working approach to make it work:
Add this section to
/config/routes/sulu_article_admin.yaml
Add the extending class service definition explicitly to
services.yaml
After this, clear cache and the new overriding class will be used for the articles section in the Admin.
(The approach is in line with the symfony documentation though for some reason the tags need to be added explicitly even if the
src/Controller/Admin
resource is assigned the tags already somewhere in theservices.yaml
).The text was updated successfully, but these errors were encountered: