简体   繁体   中英

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. I'm using this as my reference: 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?

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 content, for example, should always have the same ExternalTypeId, and that value should be non-zero.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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