Try our conversational search powered by Generative AI!

Programmatically updating linked content



does anyone know if the following is possible?

Page A is linked to Page B (either via a property, editor etc). Is it possible to programmatically change the link from A->B to A->C ?

I've tried using IContentSoftLinkRepository but found that it doesn't always contain the linked content references.


Aug 23, 2018 15:02

You may want to write a helper class (or a scheduled job) that iterates through and publishes each content you want to update.

Then create a new initialization module that taps into the publishing event and targets the fields that need to be updated.

Aug 23, 2018 15:28
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.