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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

Pass or Point Page Data Objects to Virtual Page

Go to End



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?