【问题标题】:How to pass WebDavURL instead of TCM URI while creating a Component using Core Service?使用核心服务创建组件时如何传递 WebDavURL 而不是 TCM URI?
【发布时间】:2012-05-07 04:27:37
【问题描述】:

我可以使用文件夹 TCMURI 创建组件,如下所示:

var schemaInfo = client.ReadSchemaFields(
    "tcm:184-1882-8", true, new ReadOptions());

ComponentData component = (ComponentData)client.GetDefaultData(
    ItemType.Component, "tcm:19-454-2");

我可以通过 WebDavURL 而不是这个 TCMURI 来创建组件吗?

提前致谢。

【问题讨论】:

    标签: tridion


    【解决方案1】:

    您应该简单地使用 WebDAV URL 而不是 TCM URI:

    string folderWebDAVURL = "/webdav/MyPublication/Path/To/Folder";
    
    ComponentData component = (ComponentData)client.GetDefaultData(
        ItemType.Component, folderWebDAVURL);
    

    【讨论】:

    • @Aquarius24 如果您需要,请标记为“答案”。谢谢!
    猜你喜欢
    • 2015-11-29
    • 1970-01-01
    • 2013-01-01
    • 1970-01-01
    • 2012-04-12
    • 1970-01-01
    • 1970-01-01
    • 2016-07-06
    • 1970-01-01
    相关资源
    最近更新 更多