Hi,
How do I get the Page object for a given Channel?
thanks,
Chinmay
Hi Chinmay,
Below is a code snippet which you could use to get hold of a page ( if one exists ) for a given channel.
if (channel.getPageRef() != null) {// There is a valid page reference
Page page = (Page)ContentUtil.getManagedObject(new ManagedObjectVCMRef(channel.getPageRef()));//Option1 : uses DSM/DPM cache
Page page = (Page)ContentUtil.findManagedObjectByVCMRef(new ManagedObjectVCMRef(channel.getPageRef()));//Option 2 : Fires a DB call.
}
Thanks and Regards,
Deepak.
From: eLink Entry: Discussion Group - Web Experience Management [mailto:v7webcontentmanagement@elinkkc.opentext.com]Sent: Wednesday, December 04, 2013 3:03 AMTo: eLink RecipientSubject: Page for a channel
Page for a channel
Posted bychinmay_khandelwal@newyorklife.com (Khandelwal, Chinmay) On 12-03-2013 16:15
[To post a comment, use the normal reply function]
Forum:
Discussion Group - Web Experience Management
Content Server:
Knowledge Center