? No Code Attached Yet J4 Issue
avatar DevMatGod
DevMatGod
5 Sep 2019

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.

avatar DevMatGod DevMatGod - open - 5 Sep 2019
avatar joomla-cms-bot joomla-cms-bot - change - 5 Sep 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Sep 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Sep 2019
Title
Trigger an event on article/module/menu when order change by drag and drop.
[4.0] Trigger an event on article/module/menu when order change by drag and drop.
avatar franz-wohlkoenig franz-wohlkoenig - edited - 5 Sep 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Sep 2019
Title
[4.0] Trigger an event on article/module/menu when order change by drag and drop.
[4.0] Trigger an event on article/module/menu when order change by drag and drop
avatar franz-wohlkoenig franz-wohlkoenig - edited - 5 Sep 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Sep 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 5 Sep 2019
avatar chetanmadaan
chetanmadaan - comment - 5 Sep 2019

What use would this serve?

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Sep 2019
Status New Information Required
avatar mbabker
mbabker - comment - 5 Sep 2019

What use would this serve?

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?

avatar chetanmadaan
chetanmadaan - comment - 5 Sep 2019

Thanks Michael.

avatar DevMatGod
DevMatGod - comment - 5 Sep 2019

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

avatar alikon alikon - change - 3 Feb 2020
Status Information Required Pending
avatar alikon
alikon - comment - 3 Feb 2020

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

avatar alikon alikon - close - 3 Feb 2020
avatar alikon alikon - change - 3 Feb 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-02-03 19:13:36
Closed_By alikon
avatar mbabker
mbabker - comment - 3 Feb 2020

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 save() method which triggers the onContentBeforeSave and onContentAfterSave events.

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".

avatar alikon alikon - change - 3 Feb 2020
Status Closed New
Closed_Date 2020-02-03 19:13:36
Closed_By alikon
avatar alikon alikon - reopen - 3 Feb 2020
avatar Hackwar Hackwar - change - 19 Feb 2023
Labels Added: ? No Code Attached Yet
Removed: ?
avatar Hackwar Hackwar - labeled - 19 Feb 2023

Add a Comment

Login with GitHub to post a comment