Programmatically updating linked content

Vote:
 

Hi,

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.

Thanks

#196267
Aug 23, 2018 15:02
Vote:
 

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.

#196269
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.