Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
are there inbuilt core methods for accessing available templates?
I'm writing an import process from my existing cms to umbraco and need to match old template to new umbraco template.
for instance the old would have template of "sitemap"
In umbraco I want this to be a masterDocumentType with the template of "sitemap"
d.Template accepts an int, looking in the db at the cmsTemplates table I can see that the "sitemap" template I have created has id 1718.
But wondered if rather than having to retrieve data direct from the db table to find the id of the matched template if any core methods existed.
Cheers
umbraco.cms.businesslogic.template.Template look into that class its methods.
d.Template = umbraco.cms.businesslogic.template.Template.GetTemplateIdFromAlias("sitemap");
exactly what I wanted... cheers.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
enumerating the available templates.
are there inbuilt core methods for accessing available templates?
I'm writing an import process from my existing cms to umbraco and need to match old template to new umbraco template.
for instance the old would have template of "sitemap"
In umbraco I want this to be a masterDocumentType with the template of "sitemap"
d.Template accepts an int, looking in the db at the cmsTemplates table I can see that the "sitemap" template I have created has id 1718.
But wondered if rather than having to retrieve data direct from the db table to find the id of the matched template if any core methods existed.
Cheers
umbraco.cms.businesslogic.template.Template look into that class its methods.
d.Template = umbraco.cms.businesslogic.template.Template.GetTemplateIdFromAlias("sitemap");
exactly what I wanted... cheers.
is working on a reply...