Can I alter which page is loaded in the LoadingChildren event?

Vote:
 

If I hook the LoadingChildren event, can I alter which page is to be loaded from within it?  I've tried setting both e.PageLink and e.TargetLink to a different Page Reference.  It will correctly set to this different Page Reference, but the DataFactory still loads the page it originally planned on.

I want to intercept, and have the DataFactory load a different page under certain circumstances.  Possible?

#52358
Jul 20, 2011 0:18
Vote:
 

If you want to load a version of a page, you want to set the WorkID for the pageLink. Find the latest version of the page and set its WorkID to the e.PageLink.WorkID

If you just want to load a different page, you can use the e.PageLink.ID property and set it to whatever ID the page you want to load has.

#52403
Edited, Jul 21, 2011 17:52