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

StackOverflow https://stackoverflow.com/questions/19054713

  •  29-06-2022
  •  | 
  •  

Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top