Jump to:

23376 Posts in 18214 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Pass or Point Page Data Objects to Virtual Page

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

Page: 1
Go to End
Author Topic: 533 Views
  • theoldlr
    Avatar
    Community Member
    103 Posts

    Pass or Point Page Data Objects to Virtual Page Link to this post

    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!

    533 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.