Skip to content

Instantly share code, notes, and snippets.

@drift
Created July 10, 2013 14:34
Show Gist options
  • Save drift/5966820 to your computer and use it in GitHub Desktop.
Save drift/5966820 to your computer and use it in GitHub Desktop.
Umbraco v6 Change DocumentTypes Parent
@using Umbraco.Core.Models;
@using Umbraco.Core.Services;
var contentTypeService = ApplicationContext.Current.Services.ContentTypeService;
var contentType = contentTypeService.GetContentType(4200);
contentType.ParentId=3130;
contentTypeService.Save(contentType);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment