Find all pages where shared block is added



given a ContentLink on a Block, how do I find all pages where this block is added? It is a shared block.


Jan 18, 2013 12:42

Solved it like this(With episerver.find):

var i = SearchClient.Instance.Search<MyBlock>()

foreach(var p in i){
var y = p as IContent;
var z = ServiceLocator.Current.GetInstance<IContentRepository>();
var z1 = z.GetReferencesToContent(y.ContentLink, false);



Jan 18, 2013 13:02
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.