A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Get all pages for current block

Vote:
 

Hi,

When the page block is published, I need to find all pages that use this block and do some magic :)
I'm using DataFactory.Instance.PublishedContent event to detect published blocks but don't know how to find pages that are using it.

Any help would be greatly appreciated!

#88004
Jun 27, 2014 13:30
Vote:
 

You could use ContentSoftLinkRepository.Load(referenceToBlock, true) to get all items that have a link to the block. 

#88005
Jun 27, 2014 13:38
Vote:
 

Thanks!

#88007
Jun 27, 2014 14:08
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.