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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


901 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!