简体   繁体   English

Ektron CMS扩展程序能否区分通过WorkArea和DxH发布的内容?

[英]Can an Ektron CMS Extension differentiate between content published via the WorkArea and the DxH?

I have a DxH (Digital Experience Hub) connection established between Ektron and SharePoint, and I need to execute extra code every time a content block is created from SharePoint. 我在Ektron和SharePoint之间建立了DxH(数字体验中心)连接,并且每次从SharePoint创建内容块时都需要执行额外的代码。 I'm using this as my reference: http://documentation.ektron.com/cms400/v85/webhelp/Developer/Creating_a_new_extension.htm 我将其用作参考: http : //documentation.ektron.com/cms400/v85/webhelp/Developer/Creating_a_new_extension.htm

How can I tell whether the OnAfterPublishContent method within my ContentStrategy has been called because of the DxH? 如何确定由于DxH是否已调用ContentStrategy中的OnAfterPublishContent方法?

I don't have an installation of DXH connected to Sharepoint to play with, but ContentData has an ExternalTypeId property - you should be able to use this to distinguish between content that originates with Ektron versus with another system. 我没有连接到Sharepoint的DXH安装,但ContentData具有ExternalTypeId属性-您应该能够使用它来区分Ektron和其他系统的内容。 SharePoint content, for example, should always have the same ExternalTypeId, and that value should be non-zero. 例如,SharePoint内容应始终具有相同的ExternalTypeId,并且该值应为非零。

It should be fairly trivial to check this value for Ektron versus SharePoint content either by looking in the DB (last column in the dbo.content table) or by pulling one of each known type and comparing noting the values. 通过查看数据库(dbo.content表中的最后一列)或拉出每种已知类型之一并比较这些值来检查Ektron与SharePoint内容的此值应该是相当琐碎的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM