![](/img/trans.png)
[英]How to change Template ID of item Using Sitecore Api..?? Note- Only Using sitecore api
[英]How to change sitecore template of particular item using c# coding?
谁知道更改如何使用c#编码更改特定项目的sitecore模板???
提前致谢。
其实问题很明确。
var template = Sitecore.Context.Database.Templates["common/folder"];
item.ChangeTemplate( template );
我希望这足以为您指明正确的方向。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.