New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.0] order site/admin menus in admin ui #38149
Conversation
currently they are hard coded to be displayed by id desc this pr will (when finished) allows the order to be set using drag and drop from com_menus&view=menus This is for the display of the menus in the sidebar and the menus dashboard todo - [ ] sql update - [ ] sql installation - [ ] saveorderingajax - [ ] add ordering to menu creation
This pull requests has been automatically converted to the PSR-12 coding standard. |
This pull request has been automatically rebased to 5.0-dev. |
@brianteeman would be great if you had time to finish this pr I would be happy to merge it into 5.0 |
If I knew how I would. That's why I asked for help |
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? |
Co-authored-by: Harald Leithner <leithner@itronic.at>
Co-authored-by: Harald Leithner <leithner@itronic.at>
@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 |
I updated the controller now it's working |
shucks - i changed the controller but not the model. will test it tomorrow and see what else needs doing thanks |
Maybe we should update the ordering column of the existing menu entries when adding the ordering column. Something like |
yes I was planning on doing that and also checking the sample data plugins |
This reverts commit 552be2827613a9eb37670a00bc316ccbef183933.
Co-authored-by: Quy <quy@nomonkeybiz.com>
Resolves #39236 |
The ordering of menu Items will be a challenge. First tests look very promising. Thanks for that @brianteeman |
Not sure what you mean. This PR is about ordering the menus not the items |
Sorry, forget it. Multi-tasking-failure ;) |
I have tested this item ✅ successfully on 9b311a2 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38149. |
thanks |
1 similar comment
thanks |
@@ -0,0 +1,2 @@ | |||
ALTER TABLE "#__menu_types" ADD COLUMN "ordering" int NOT NULL DEFAULT 0 AFTER "client_id"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PostgreSQL doesn't support "AFTER", so this will result in an SQL syntax error when updating on PostgreSQL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks can you fix it please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can take a while because I have to boot my environment and update my branches.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR is #41177 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just see the update SQL scripts are also missing the ´/** CAN FAIL **/` installer hint. PR is in preparation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR is #41184 .
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.
thanks @HLeithner