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
Improve order of backend modules #1706
Comments
Yes, that's something that had bothered me as well. Not sure if priorities solve the issue though. |
How about a sorting option in the user and user group settings? This would make sense IMO because how important a backend module is might depend on the user (group). |
There would be probably some edge cases there it doesn't fit but then you still have the event.
Great idea to allow a user to customize the order. However I still think it would be an improvement to allow developers to predefine an order. Examples:
These are examples based already existing in the core. In custom extensions I have some extra use cases:
In summary I vote for a predefined order but also having the ability to customize the order on user/group level. |
Im Catalog Manager von Alexander Naumov ist das Verschieben der Reihenfolge schon möglich. Vielleicht kann man die Lösung schon nutzen. |
As discussed in Mumble on May 7th, we want to make the menu order configurable in the user and user group settings. However, we do not want to add priority keys, because the automatic sorting is only applied to the "old" menu items coming from |
What about entries like: // contao/config/config.php
$GLOBALS['BE_MOD']['foobar']['foo'] = [
'tables' => ['tl_foo']
]; i.e. back end modules for editing records of a DataContainer. Is there a new way to register those and add them via the event listener? If yes, then I am simply not aware of it or how to do it - and I need to document it 😁 If no, then we do need priority keys, so that developers can define a sensible default sorting for their modules within their own section. |
The backend user rights could use a sortable checkboxWizard instead of the normal checkboxes to also define the positions of each module along to the access rights. The sorting can then be applied with a simpel array_insert method based on the sorting of the widget. Pretty much the way Contao did it before it changed to the strict alphabetically order (now reverted). The array insert method is how I do it in CustomCatalog to include the backend modules at the position selected in the settings of the CC |
@timgatzky What happens if there are several user groups - is the first group the decisive one? |
The alphabetical sorting has already been reverted (see #1919), therefore this ticket is no longer relevant. |
Groups and user rights merge. Admins can be defined on user level. Big question is. Is anybody really using or even needing this feature in the Contao core? |
I know that the issue was dicussed before (#1205, #1324), I'd like to raise awareness for this issue again. Right know backend modules are ordered by label alphabetically.
The current approach have some issues:
To increase UX/DX I'd like to suppose a new priority key for backend menu entries which are used to sort entries. Implementing a custom event listener to fix the order wouldn't be neccessary anymore.
If you agree with the proposed solution I'd happy to provide a PR for it.
The text was updated successfully, but these errors were encountered: