I want to clear a document's template so that it doesn't have a template at all (to work with Cultiv sitemap).
Initially I tried to set the template dropdown in the document's generic properties to "choose", which didn't work (it didn't persist). So I then set the document type in question to have no allowed templates. At this point the document showed as having no template (the "choose" persisted), but in the db and the umbraco.config file the template id is still there.
I've tried republishing, restarting website & deleting umbraco.config but the problem seems to be that the db still contains the templateid for that document.
Sounds odd, but it may be a bug. If you can repro this, I'd suggest you report this issue on Codeplex so a core team member can verify and solve if necessary.
remove a template from a document, is this a bug?
I want to clear a document's template so that it doesn't have a template at all (to work with Cultiv sitemap).
Initially I tried to set the template dropdown in the document's generic properties to "choose", which didn't work (it didn't persist). So I then set the document type in question to have no allowed templates. At this point the document showed as having no template (the "choose" persisted), but in the db and the umbraco.config file the template id is still there.
I've tried republishing, restarting website & deleting umbraco.config but the problem seems to be that the db still contains the templateid for that document.
Is this familiar to anyone?
Claire,
Sounds odd, but it may be a bug. If you can repro this, I'd suggest you report this issue on Codeplex so a core team member can verify and solve if necessary.
Cheers,
/Dirk
And don't forget to include environment info (umb version, ...) as well
I had a similar problem recently, but I did the same thing, made sure that no templates were allowed for that docType and republished.
Have you tried deleting the umbraco.config file? This will force Umbraco to recreate it, that might help.
Thanks guys, I've reported the issue here:
http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=26104
Republishing & deleting umbraco.config makes no difference (I've tried) since the value of templateId in the cmsDocument table is never cleared.
To work around this, do you reckon it's safe to NULL the templateId value manually in the db?
is working on a reply...