开发者

problem when deleting template using umbraco

i have an umbraco page and i linked ascx pages from vs2008.my problem is that i cant delete a template in umbraco named admin.whenever i try to delete it shows message

"Item has alre开发者_如何学Goady been added. Key in dictionary: 'admin' Key being added: 'admin'"


that is the problem related to your template itself.in your project i think thereare two template aliases with same name "admin". change alias of any one and then try to delete.it will work.

check this tutorial vedios (http://umbraco.com/products/umbracotv)


Do you have a template with the same name? Try renaming one maybe? This usually happens because Umbraco doesn't check for duplicates in naming in the first place, but everything must have unique name ...


I did it the hard way! (refid being the 'id' show in the status bar when you select a template in the admin cms window)

DELETE FROM  [cmsDocumentType]
WHERE templateNodeId = refid
GO

DELETE FROM [cmsTemplate]
WHERE nodeid  = refid
GO

DELETE FROM [umbracoNode]
WHERE id  = refid
GO
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜