Per Bjurström
Feb 11, 2015
(9 votes)

Typed tabs/groups

Currently in the typed model you are limited to defining sort order on individual content types and properties. The order defined then indirectly defines in which order groups are displayed when creating new content, and in which order the tabs are shown when editing content in the forms view. Normally you define groups as a list of constants that you use in the DisplayAttribute:

[ContentType(GroupName=GroupNames.News, Order=1)]
public class ArticlePage : PageData
  [Display(GroupName = GroupNames.Contact)]
  public virtual ContentReference Image { get; set; }

public static class GroupNames
   public const string News = "News";
   public const string Contact= "Contact";

In CMS 8 we are adding support for defining order and required access on the groups themselves. Just decorate the class:

public static class GroupNames
   [Display(GroupName="MyNews", Order=1)]
   public const string News = "News";
   public const string Contact= "Contact";

Groups that do not have any order defined will fallback to the indirect sorting and will have sort index set to -1. It is also possible to override built-in groups to change sort order, for example:

public static class GroupNames
    [Display(Order = 1000)]
    public const string Content = SystemTabNames.Content;

See SDK article Grouping content types and properties for more details.

Feb 11, 2015


Feb 11, 2015 02:17 PM


Eric Feb 11, 2015 02:29 PM

Nice feature. So when is the release of CMS 8? :)

Feb 11, 2015 02:47 PM

@Eric Before Tết I hope :)

Eric Feb 11, 2015 03:24 PM

Ah good to know :)

Johan Book
Johan Book Feb 11, 2015 10:14 PM


Henrik Fransas
Henrik Fransas Feb 24, 2015 10:46 AM

Great, a feature I've been waiting for a long time :)

Josef Apr 4, 2015 12:17 PM

Really nice!

Sriram raja
Sriram raja Jun 3, 2020 07:56 AM

how to restrict user access to all tabs above highlited one. There are many tabs. We need to have separate access for each tab access based on user group like admin editor etc. can you please post a code for it:)

Please login to comment.
Latest blogs
Caching & Rendering of metadata from the DAM

For the EPiServer.Cms.WelcomeIntegration.UI 1.2.0 release, we have facilitated the ability to cache and render metadata from assets within the DAM....

Matthew Slim | Jun 2, 2023

Conversion Rate Optimization: Maximizing ROI through Data-Driven Decisions

In today's digital landscape, businesses are constantly looking for ways to improve their online presence and drive more conversions. One effective...

JessWade | Jun 1, 2023

Enhance Your Writing with Suggestions

Are you tired of staring at a blank screen, struggling to find the right words? The Epicweb.Optimizely.AIAssistant Addon is here to revolutionize...

Luc Gosso (MVP) | May 31, 2023 | Syndicated blog

Content Graph - Letting GraphQL do all the hard work for you

Background As we have seen before, setting up Content Graph on the CMS side is pretty easy. However, when it comes to the “head” part of the setup,...

Kunal Shetye | May 26, 2023 | Syndicated blog