Feature PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
26 Jun 2022

The site and admin menus displayed in the admin interface sidebar are hard coded to be displayed by id desc

This PR allows the order to be changed using drag and drop from com_menus&view=menus

Pull Request for Issue #38143

When thinking about documentation for this PR I concluded that this is NOT a new feature but its more of a bug that you couldnt sort them before just as you can sort everything else.

To test

Clean install from the prebuilt package in this PR
Create multiple site and admin menus (they dont need any menu items in them for the prupose of this test)
Drag and drop to change the order
Refresh the page and you will see the changes take effect in the sidebar

Update an existing test site using the prebuilt package in this pr
Repeat the steps above.

menus

thanks @HLeithner

avatar brianteeman brianteeman - open - 26 Jun 2022
avatar brianteeman brianteeman - change - 26 Jun 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Jun 2022
Category Administration com_menus
avatar joomla-bot
joomla-bot - comment - 27 Jun 2022

This pull requests has been automatically converted to the PSR-12 coding standard.

avatar HLeithner HLeithner - change - 27 Jun 2022
Labels Added: ? ?
avatar HLeithner
HLeithner - comment - 2 May 2023

This pull request has been automatically rebased to 5.0-dev.

avatar HLeithner
HLeithner - comment - 13 May 2023

@brianteeman would be great if you had time to finish this pr I would be happy to merge it into 5.0

avatar brianteeman
brianteeman - comment - 13 May 2023

If I knew how I would. That's why I asked for help

avatar HLeithner HLeithner - change - 10 Jul 2023
Title
[wip] order site menus in admin ui
[5.0] order site menus in admin ui
avatar HLeithner HLeithner - edited - 10 Jul 2023
avatar HLeithner
HLeithner - comment - 10 Jul 2023

oh sorry I didn't saw your comment, what exactly do you need? or is it the todo list you added where you need help?

avatar brianteeman brianteeman - change - 12 Jul 2023
Labels Added: Feature PR-5.0-dev
Removed: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jul 2023
Category Administration com_menus SQL Administration com_admin Postgresql com_menus
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jul 2023
Category Administration com_menus SQL com_admin Postgresql SQL Administration com_admin Postgresql com_menus Installation
avatar brianteeman brianteeman - edited - 12 Jul 2023
avatar brianteeman brianteeman - change - 12 Jul 2023
The description was changed
avatar brianteeman brianteeman - edited - 12 Jul 2023
avatar brianteeman brianteeman - change - 12 Jul 2023
The description was changed
avatar brianteeman
brianteeman - comment - 12 Jul 2023

@HLeithner sorry - had to look at the code again to see where I had left it.

currently stuck at saveorderingajax

probably missing something obvious but I just cant see it

avatar HLeithner
HLeithner - comment - 12 Jul 2023

I updated the controller now it's working

avatar brianteeman
brianteeman - comment - 12 Jul 2023

shucks - i changed the controller but not the model.

will test it tomorrow and see what else needs doing

thanks

avatar HLeithner
HLeithner - comment - 13 Jul 2023

Maybe we should update the ordering column of the existing menu entries when adding the ordering column. Something like update #__menus set ordering=id

avatar brianteeman
brianteeman - comment - 13 Jul 2023

yes I was planning on doing that and also checking the sample data plugins

avatar brianteeman brianteeman - change - 13 Jul 2023
The description was changed
avatar brianteeman brianteeman - edited - 13 Jul 2023
avatar brianteeman brianteeman - change - 13 Jul 2023
Title
[5.0] order site menus in admin ui
[5.0] order site/admin menus in admin ui
avatar brianteeman brianteeman - edited - 13 Jul 2023
avatar brianteeman brianteeman - change - 13 Jul 2023
The description was changed
avatar brianteeman brianteeman - edited - 13 Jul 2023
avatar chmst
chmst - comment - 13 Jul 2023

Resolves #39236

avatar chmst
chmst - comment - 13 Jul 2023

The ordering of menu Items will be a challenge. First tests look very promising. Thanks for that @brianteeman

avatar brianteeman
brianteeman - comment - 13 Jul 2023

The ordering of menu Items will be a challenge.

Not sure what you mean. This PR is about ordering the menus not the items

avatar chmst
chmst - comment - 13 Jul 2023

Sorry, forget it. Multi-tasking-failure ;)

avatar bayareajenn bayareajenn - test_item - 14 Jul 2023 - Tested successfully
avatar bayareajenn
bayareajenn - comment - 14 Jul 2023

I have tested this item successfully on 9b311a2

Tested new install and tested by updating an instance. Really great, nice to have. Thanks, Brian. :)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38149.

avatar HLeithner HLeithner - change - 17 Jul 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-07-17 12:06:45
Closed_By HLeithner
avatar HLeithner HLeithner - close - 17 Jul 2023
avatar HLeithner HLeithner - merge - 17 Jul 2023
avatar HLeithner
HLeithner - comment - 17 Jul 2023

thanks

avatar brianteeman
brianteeman - comment - 17 Jul 2023

thanks

Add a Comment

Login with GitHub to post a comment