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

Anders Hattestad
Feb 8, 2016
  2824
(3 votes)

Get owner content of document in “for this page”

A quick tip for finding owner page.

var contentAssetHelper = ServiceLocator.Current.GetInstance<ContentAssetHelper>();

var ownerNode = contentAssetHelper.GetAssetOwner(media.ContentLink);

It is also worth to mention that the standard EPiServer Search will index local files bellow contentlink 4, or if you drag the current page "for this page" folder inside a contentarea it will give you the same value.

VirtualPathQuery pathQuery = new VirtualPathQuery();
pathQuery.AddContentNodes(bellow, serviceLocationHelper.ContentLoader());

Feb 08, 2016

Comments

Please login to comment.
Latest blogs
Optimizely PaaS Administrator Certification : Free for Everyone

Optimizely has recently launched a free PaaS Administrator Certification. https://academy.optimizely.com/student/activity/2958208-paas-cms-administ...

Madhu | Dec 9, 2025 |

Fixing TinyMCE Initialization Failures in Optimizely CMS: A Hidden Pipeline Issue with .NET SDK Versions

Over the past few weeks, several Optimizely CMS projects began experiencing a puzzling failure: XHtmlString fields stopped initializing TinyMCE in...

Francisco Quintanilla | Dec 9, 2025 |

Jhoose Security Modules v2.6.0 — Added support for Permissions Policy and .NET 10

Version 2.6.0 adds Permissions Policy header support, updates to .NET 10, improved policy management, configurable security settings, and enhanced...

Andrew Markham | Dec 6, 2025 |

Building a 360° Customer Profile With AI: How Opal + Optimizely Unlock Predictive Personalization

Creating truly relevant customer experiences requires more than collecting data—it requires understanding it. Most organizations already have rich...

Sujit Senapati | Dec 4, 2025