Skip to content
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

Rethink the location in the Settings tree #6

Open
stefankip opened this issue Oct 7, 2020 · 4 comments
Open

Rethink the location in the Settings tree #6

stefankip opened this issue Oct 7, 2020 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@stefankip
Copy link

Hey there!

At this moment the Domains item in the tree is at the top, right above Document Types.
I think developers are used to having the Document Types item at the top and let's face it, Document Types are the most important inside the Settings section, right?
It might be better to move the Domains items right above or underneath the Languages item?

@ronaldbarendse
Copy link

Having it right below Languages would indeed make most sense!

@erikjanwestendorp erikjanwestendorp added the help wanted Extra attention is needed label Oct 7, 2020
@erikjanwestendorp
Copy link
Owner

@stefankip @ronaldbarendse Thanks for your suggestion! I definitely agree that it is more beautiful to have it above or underneath the Languages! I labeled it as Help wanted, It would be great if you or someone else wants to work on it :-)

@stefankip
Copy link
Author

I think it's a matter of adding a SortOrder property to the Tree attribute:

TreeGroup = Constants.Trees.Groups.Settings)]

The question is, what number we should provide ;-)

@ronaldbarendse
Copy link

Looking that up in the Umbraco source code is the easy part, but as Umbraco doesn't leave empty sort orders between Languages (11) and ContentBlueprints (12), picking the 'right' one is a little harder.

If it's set to either 11 or 12, the actual sorting will depend on the tree title translations, because IIRC that's used if the sort order is the same... The best option is to use 12, as that positions it either below Languages or otherwise as last item (assuming Umbraco doesn't add new trees or changes the sort order). The safest option is to use e.g. 100, so it's always last 🦺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants