We are developing a .NET-based network based on a broker request mechanism (filter):
ComponentPresentationAssembler cpAssembler = new ComponentPresentationAssembler(Page ID,Page object);
To pass the page identifier, I need to access the page on which this component is present. How to access a page from a package? Since this is a CT, the component object will be available on the page, not the page object. I tried the following code snippet, but to no avail:
string pageURI = _package.GetValue("Page.ID"); Page objPage = (Page)_engine.GetSession().GetObject(pageURI);
This does not work because there is no page object. What are the alternatives so that we can access the component's parent page from CT?
source share