Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Override tab order for a particular page type

Vote:
 

Hi,

First of all, i'm very new to EpiServer, so please forgive me for any blatantly incorrect assumptions I might make.

I'm currently reording/restructuring tabs and properties for a particular page type according to a client's specifications and as far as I can tell, tabs are defined globally as are the order values for each tab. Is it possible to change the ordering of tabs for a particular page type without affecting the ordering of others? And if so, how might I go about it?

Thanks for any help you might be able to provide.

#204983
Jun 24, 2019 21:49
Vote:
 

Hi Alex,

If you want to change the tab order for particular page then you can use this-

[GroupDefinitions]
public static class TabNames
{
    [Display(Order = 100)]
    public const string Sidebar = "Sidebar";

    [Display(Order = 110)]
    public const string Description = "Description";
}

For more information you can refer below article- 

https://marisks.net/2016/01/30/episerver-custom-tab-ordering/

Thanks

Ravindra

#204992
Jun 25, 2019 9:05
Vote:
 

And for the custom tab ordering per page type you can then use (using the link above to support the new CustomTab attribute)

[ContentType(GUID = "a35c0203-e548-4918-b932-05205cc8c491", Order = 1)]
[CustomTab("Sidebar", 100)]
[CustomTab("Description", 110)]
public class StandardPage : EditorialPageBase
{
    [Display(Name = "Text", Order = 10, GroupName = "Description")]
    public virtual string Text { get; set; }

    [Display(Name = "Sidebar", Order = 10, GroupName = "Sidebar")]
    public virtual ContentArea SidebarContentArea { get; set; }
}
#204994
Jun 25, 2019 9:59
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.