Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Pass or Point Page Data Objects to Virtual Page


Reply


597 Views

Avatar
theoldlr

Community Member, 103 Posts

30 December 2010 at 9:30am

I have DataObjects in my Page class. Is there a way to extend VirtualPage to point to the DataObjects of the page it is mirroring? I attempted this, but with no success... I'm still pretty fresh on working with DataObjects.

My end goal here is for virtual pages to display exactly the same as the pages they mirror including data objects (except for how they are organized in the SiteTree obviously) including using the same template files. Is it possible to do this without copying the database fields and just having the Virtual Pages refer to the database fields for the Page it is mirroring?

Thanks!