How to create AutoRoute Patterns by code?
Hey guys, I have a custom module that I'm developing along with a theme -- as I'm developing I find it a real timewaster adding autoroutes to my page type each time I delete the DB or start afresh. So how do I go about adding my AutoRoute Patterns by code on my modules migration? Do I use IContentDefinitionManager? If so, how do I make a new one…
var pageType = _contentDefinitionManager.GetTypeDefinition("Page"); //9 var autoPart = _contentDefinitionManager.GetPartDefinition("Autoroute");//15 //New ContentTypePartDefinitionRecord?
Thanks in advance, Orlando