Thanks for the reply Pepi. Unfortunately I am getting an exception when i try that code.
The exception is:
userpage.Staged.Template = manager.GetTemplate( "Main Template" );
Unable to cast object of type 'Telerik.Cms.Data.CmsTemplateContent' to type 'Telerik.Cms.Data.PageTemplate'.
I have to say, I am a bit disappointed in the development documentation thus far. Is there any plans to better document this part of the API? I had expected this type of information to be in the developer manual, but it doesn't seem to be very complete.
The api reference section is nothing more than a listing of classes and there is no information on how to use them. And as far as intellisense goes none of the methods, classes, interfaces, or paramaters have any sort of xml comments on them. Very frustrating to try to figure this stuff out by trial and error.
One thing that would be of great help would be to get the source of a module that is more complete than the jobs one. The jobs one is a good way to get started, but it lacks the features of a more complete module. It would be great to see how things are accomplished in a module such as blogs or such.
Or at the very least, modify the license to allow the use of Reflector etc.
Anyways. I don't mean to complain this much, the overall product has been a pleasant experience. I just wish the developer documentation was more thorough