How do I get the ids for the stock templates?
I am doing a lot of page generation. I have figured out how to create pages and add controls and modules. I haven't figured out yet how to add a template.
PageManager pManager = new PageManager();
Guid templateGuid = pManager.GetTemplates().First().Id;
p.Name = "Page1";
p.Title = "This is a test page";
p.Description = "Some Description here";
p.DateCreated = DateTime.Now; //filled in automatically, but you can control it programatically as well
p.UrlName = "page1"; //filled in automatically, but you can set any url name here.
p.ShowInNavigation = true;
This code appears to add a template but I don't see the SetTemplateTo Method in the API.
Where this is shown in the example