This project is read-only.

Creating Taggable Content Parts

Topics: Customizing Orchard, Writing modules
May 5, 2011 at 5:43 AM


  How can I make a content part taggable in the Migrations class so that it is taggable right out of the box?  I know I can add the Tags part via the admin panel after the part is initially created but is there a way to do it during initial part creation?  Thanks.

May 5, 2011 at 7:34 PM

From your migration, you can do ContentDefinitionManager.AlterTypeDefinition("MyCustomType", cfg => cfg.WithPart("TagsPart"));

May 5, 2011 at 7:39 PM

Thanks as always.