[4.0] Trigger an event on article/module/menu when order change by drag and drop #47181
Replies: 6 comments
-
|
What use would this serve? |
Beta Was this translation helpful? Give feedback.
-
Aside from the fact that most every write action should have some kind of pre- and post- hook? Why should some write actions have extension points that can be hooked to do extra things and others not? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks Michael. |
Beta Was this translation helpful? Give feedback.
-
|
In my case, I need to refresh the cache every time an administrator change something. But it could be useful to someone who needs to pre-render something relative to the order. Right now, he'll need to trust that the user would open and save the article. When you change the order, the change is saved in the database. I think it should be treated as such |
Beta Was this translation helpful? Give feedback.
-
|
Closing this due to not receiving required information to determine if this is a bug or not. If you feel this still needs review, please open a new tracker entry with as much information as possible to ensure it can be reviewed properly |
Beta Was this translation helpful? Give feedback.
-
|
All of the required information is there! This is a feature request to trigger before/after events on drag and drop reordering. Hell, it could easily be done if the controller actions handling that were using the existing model If you're closing feature requests because nobody has acted upon them, then use a different copy/paste blob that's more appropriate than "oh this doesn't have all the info we want, closing". |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
There is no way to create a plugin that triggers an event when the order of an item (Article, Module or Menu) is changed by dragging it in the list.
Solution
Trigger onContentAfterSave or something similar when the order is changed via drag-and-drop.
Beta Was this translation helpful? Give feedback.
All reactions