If you are using Umbraco 6.x or newer I think it would be a better idea to use the different serices to get content media, members and so on. And there is also the FileService where you have the method .GetTemplate(string alias) Gets a single ITemplateObject object.
As far as I know the umbraco.cms.businesslogic is the old way of doing it, but I am not a .NET developer.
RenderTemplate by name
there is Umbraco.RenderTemplate ( contentId, templateId )
how can I do Umbraco.RenderTemplate ( contentId, templateName ) ?
sorry, alias
I found
umbraco.cms.businesslogic.template.Template.GetByAlias("aliasName").Id;
this the best practice for such a common task?
Hi Andrew,
If you are using Umbraco 6.x or newer I think it would be a better idea to use the different serices to get content media, members and so on. And there is also the FileService where you have the method .GetTemplate(string alias) Gets a single
ITemplateObject
object.As far as I know the umbraco.cms.businesslogic is the old way of doing it, but I am not a .NET developer.
Hope this helps.
/Dennis
is working on a reply...