Take the community feedback survey now.

Per Bjurström
Feb 11, 2015
  16296
(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:

 [GroupDefinitions]
public static class GroupNames
{
   [Display(GroupName="MyNews", Order=1)]
   public const string News = "News";
   [RequiredAccess(AccessLevel.Publish)]
   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:

[GroupDefinitions]
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

Comments

Feb 11, 2015 02:17 PM

Nice!

Eric
Eric Feb 11, 2015 02:29 PM

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

per
per Feb 11, 2015 02:47 PM

@Eric Before Tết I hope :)

Eric
Eric Feb 11, 2015 03:24 PM

Ah good to know :)

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

+1

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

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

Josef
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
Optimizely Web Experimentation on Single Page Applications

  Introduction Most of the modern web applications are built as Single Page applications (SPA) which provides a quick and smooth experience to the...

Ratish | Nov 16, 2025 |

Optimizely CMS - Learning by Doing: EP07 - Create Controller/View for Pages

  Episode 7  is Live!! The latest installment of my  Learning by Doing: Build Series  on  Optimizely CMS 12  is now available on YouTube! This vide...

Ratish | Nov 16, 2025 |

Multiple Languages in Optimizely CMS

I was exploring multi-languages in Optimizely CMS 12 – able to figure it out quickly in a few steps. Let’s get started. 1. Enable Languages... The...

Madhu | Nov 15, 2025 |

Optimizely CMS RSS Feed Integration Library — Version 2 Release

Optimizely CMS Easy RSS Feed Integration Library — Now in v2 A while ago I launched a NuGet-package called DavidHome.RssFeed to make RSS feed...

David Drouin-Prince | Nov 15, 2025 |

Full implementation - Fallback languages with Optimizely Graph

Nowadays, many people choose a headless approach when developing Optimizely CMS/Commerce projects using Opti Graph. One challenge we may face is...

Binh Nguyen Thi | Nov 15, 2025

Optimizely Connect Platform (OCP): Extending the Optimizely One Ecosystem

Discover how Optimizely Connect Platform (OCP) enables seamless integrations across the Optimizely One ecosystem. Learn about app models, sync type...

Andrew Markham | Nov 14, 2025 |