[英]tridion 2009 - copy multimedia component from one publication to another
如何在2009年使用api將圖像組件從一個出版物復制到另一個出版物?
這可能嗎? 我試過用
newComponent.Multimedia.SetUploadedMultimediaFilename(originalComponent.Multimedia.Filename);
+ newComponent.save(); 我的newComponent是我從原始組件創建的那個。
<tcm:Error xmlns:tcm="http://www.tridion.com/ContentManager/5.0" ErrorCode="80040325" Category="3" Source="Kernel" Severity="2">
- <tcm:Line ErrorCode="80040325" Cause="false" MessageID="16137">
- <![CDATA[ Unable to save Component (tcm:0-0-0).
]]>
<tcm:Token>RESID_4574</tcm:Token>
<tcm:Token>RESID_4418</tcm:Token>
<tcm:Token>tcm:0-0-0</tcm:Token>
</tcm:Line>
- <tcm:Line ErrorCode="80040325" Cause="true" MessageID="16010">
- <![CDATA[ Operation is not supported on a new item (or on a null URI).
]]>
</tcm:Line>
- <tcm:Details>
- <tcm:CallStack>
<tcm:Location>UtilitiesBL.AssertValidURI</tcm:Location>
<tcm:Location>ComponentBL.CheckMultiMediaProperties</tcm:Location>
<tcm:Location>ComponentBL.Create</tcm:Location>
<tcm:Location>XMLState.Save</tcm:Location>
<tcm:Location>Component.Save</tcm:Location>
</tcm:CallStack>
</tcm:Details>
</tcm:Error>
這不起作用......您需要先將多媒體項保存到文件位置,然后使用此位置從中上傳。 你現在正在做的就是告訴Tridion在originalComponent.Multimedia.Filename
上有一個文件,它可能是也可能不是。
ñ
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.