Jump to:

23452 Posts in 18901 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » VirtualPage - How to get the original page ID?

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: 974 Views
  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    VirtualPage - How to get the original page ID? Link to this post

    Hi all,

    VirtualPage Doku section is completely dead so I have to ask here.

    I have a bunch of "Tour" pages that are 'duplicated' in other sections using VirtualPages. The trouble I'm having is that each of these Tour pages has a form that posts the Tour ID to the next page.

    This works fine for the original Tour pages, but for the VirtualPages that are derived from them, obviously it's sending the new VirtualPage ID.

    So, how do I get the original ID of a page that a VirtualPage is derived from?

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: VirtualPage - How to get the original page ID? Link to this post

    I thought I had this but it's come back to bite me in the ass.

    Can anyone answer this question?

  • swaiba
    Avatar
    Forum Moderator
    1788 Posts

    Re: VirtualPage - How to get the original page ID? Link to this post

    Out of curiosity I looked at Virtual Page - I'm guessing that the following doesn't work...

    $myvirtualpage->ContentSource()-ID;

    974 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.