var contentTypeService = UmbracoContext.Current.Application.Services.ContentTypeService;
var contentType = contentTypeService.GetContentType("MyDocumentTypeAlias");
var tab = new PropertyGroup { Name = "ContentTab", SortOrder = 100 };
contentType.PropertyGroups.Add(tab);
contentTypeService.Save(communityContentType);
Add New Tab to a Document Type
Hi all,
I'm trying to create and add a new virtual tab, with properties and stuff, to an existing document type.
The problem is that the methods i'm trying to use are deprecated and i'm having some errors too.
Is there a more recent/updated solution?
Thanks in advance,
Andre Sousa.
This is more recent and relevant:
Thanks man!
I think this is the way to go.
Thank you for the reply Sebastiaan.
is working on a reply...