• Fabrik4.5.3 for J!5.3.0 and J!4.2+is out

    You must update from Fabrik4.5.1 if you are running Joomla!5.3.0

    See Announcements

Fixed List order plugin does not work with SEF-urls enabled

juuser

Well-Known Member
When SEF urls are enabled, order plugin seems to make an ajax call to the wrong url which is "yourdomain.com/some-menu-alias/index.php", but it should be "yourdomain.com/index.php". And therefore does not save the ordering throwing a "404 not found" error on browser console.

In order.js, adding slash ("/") to the ajax url before the "index.php", solves the issue.

Hope you can commit this to the Bitbucket.

1732227065540.png

Thanks in advance!
 
Good find!
Should be done in order.min.js as well, unless you're running in Debug JS mode all the time.

EDIT: Seems to work also fine with just
Code:
url         : ''
in order.js and
Code:
url:""
in order.min.js

So, with an "empty" URL... which may be more universal and also works if Joomla is installed in a subdirectory/subfolder instead of the root directory (like in my case here).

However, it appears one must always reload the page for the numbers in the order field column to update. Not really an issue as after dragging the order of items is as desired, of course, and with any next page load it's fine. It's only slightly irritating if the order field is visible with its numbers... which is not what most users want, I'm sure.
 
Last edited:
However, it appears one must always reload the page for the numbers in the order field column to update. Not really an issue as after dragging the order of items is as desired, of course, and with any next page load it's fine. It's only slightly irritating if the order field is visible with its numbers... which is not what most users want, I'm sure.
True, that's why I usually replace the numbers with an up-down arrow icon, so user doesn't have to see the numbers which sometimes are ever negative (with a minus).

Actually there is one more issue in ajaxified lists that after the filtering the list, drag events seem to be removed and in order the plugin to work again, list has to be reloaded.
 
I think what we want is to use Fabrik.liveSite which will always be the url path to the installed version of Joomla. As we have seen in the FullCalendar ajax calls, this will work independent of the SEF settings.

Can one of you try changing the 'index.php' to Fabrik.liveSite + 'index.php' and see if that solves the issue for you?
 
Last edited:
True, that's why I usually replace the numbers with an up-down arrow icon, so user doesn't have to see the numbers which sometimes are ever negative (with a minus).

Actually there is one more issue in ajaxified lists that after the filtering the list, drag events seem to be removed and in order the plugin to work again, list has to be reloaded.
Yup, also using an icon/image here. Doesn't show after adding a new record, though... needs to be dragged and dropped someplace else first, then reload, then it shows.

Also ajaxified list, but no filters in use here at my end for this list. So, I can't confirm, but no doubt you're speaking the truth, hehe.
 
Doesn't show after adding a new record, though... needs to be dragged and dropped someplace else first, then reload, then it shows.
True again :) , here I'm using element default field to add the order no for new rows. Query the max and return max + 1.
 

Members online

No members online now.
Back
Top