OnTopicCMS/OnTopic-Editor-AspNetCore

Sort `DisplayGroup`s with "Content" first and "Settings" last

Closed this issue · 1 comments

The AttributeDescriptor.DisplayGroup is used to determine the tabs at the top of each OnTopic Editor page. These are currently displayed in alphabetical order, which is generally appropriate. In addition to this, however, special rules should be put in place so that the Content tab is always listed first, and the Settings tab is always listed last. These are frequently used, and established by the core content type descriptors, so it makes sense for them to be in predictable places.

Optionally, we may want to setup Navigation to be second to last.

This was resolved by using a LINQ query on the ContentTypeDescriptorViewModel's GetDisplayGroups() method to fine-tune to sort order (5e017ce).