Draggable Ordering Articles Not working

Need help with the Administration of your Joomla! 4.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
tt_gr
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Mar 13, 2024 8:29 am

Draggable Ordering Articles Not working

Post by tt_gr » Wed Mar 13, 2024 8:49 am

Hello, on a Joomla 4/5 (tested on both) I am not able to order (by drag-drop) articles of a 2nd level category on a multi-language site. As you can see in the attached screenshot: the desired category is selected as well as the desired language.

The drag and drop feature is working, but the new order on articles is not saved. I mean the field #__content.ordering is not changed. After a little digging I found out the following:

* in the file libraries/src/MVC/Model/AdminModel.php
* public function saveorder($pks = [], $order = null) line 1437
* if I comment out the code
foreach ($conditions as $cond) {
$this->table->load($cond[0]);
$this->table->reorder($cond[1]);
}

the new order is saved correctly.

I would be grateful if you could tell me what am I doing wrong ?

Thank you in advance
You do not have the required permissions to view the files attached to this post.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30948
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Draggable Ordering Articles Not working

Post by Per Yngve Berg » Wed Mar 13, 2024 9:58 am

You cannot sort articles outside of their Category.

tt_gr
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Mar 13, 2024 8:29 am

Re: Draggable Ordering Articles Not working

Post by tt_gr » Wed Mar 13, 2024 11:06 am

Thank you for your answer but I am not really getting it. The articles depicted on the attached screenshot belong to the same (2nd level) category. So I am not trying to sort them outside of their category.

Where am I wrong?


Post Reply

Return to “Administration Joomla! 4.x”