Drag and drop sorting ? Topic is solved

For Joomla! 3.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Post Reply
david0058
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Wed Jan 20, 2016 10:58 pm

Drag and drop sorting ?

Post by david0058 » Sat Oct 09, 2021 1:07 pm

A quick one ... I'm trying to enable sorting of items in the admin view of one of my components on J3.10, and have followed the article at https://docs.joomla.org/J3.x:Developing ... rdering/en.

Clicking the ordering icon (the little triangles) orders the rows correctly using the "ordering" attribute, but it doesn't do the "four arrows cursor/green item/drag and drop to re-order" thing.

I've been through all the code a few times now and it all matches the article above, and I've checked the JS console (no errors) and the web server error log (no errors). The generated HTML looks pretty much the same as the core "Content | Categories" component, nothing obvious missing that I can see.

Any ideas what I might need to do to get this working ?

Cheers,

David

david0058
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Wed Jan 20, 2016 10:58 pm

Re: Drag and drop sorting ?

Post by david0058 » Sun Oct 10, 2021 12:45 am

My bad (as usual :-[ )

My code in views/levels/tmpl/default.php: <table class="table table-striped id="levelList"">
What I should have had: <table class="table table-striped" id="levelList">

Spot the cut-and-paste double-quotes problem ...


Post Reply

Return to “Joomla! 3.x Coding”