In SDL Tridion 2011, how can I process metadata on an item using the Core Service?

孤街醉人 提交于 2019-12-23 12:19:15

问题


I'm using the Core Service to read Keyword information in SDL Tridion 2011. How can I process any metadata on the items I'm reading? I can see a Metadata property that contains a string of XML, and a MetadataSchema property that represents a link to a Schema. Should I deal directly with the XML, or is there a way to do something more like the ItemFields processing in the TOM.Net?

What if I want to add metadata to an item that doesn't already have any set?


回答1:


You'll need to provide your own code to parse and modify that XML, based on the associated Schema. I wrote a small Fields class to do the heavy lifting, which you can find here: https://code.google.com/p/tridion-practice/wiki/ChangeContentOrMetadata



来源:https://stackoverflow.com/questions/9379562/in-sdl-tridion-2011-how-can-i-process-metadata-on-an-item-using-the-core-servic

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!