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

VirtualPage - How to get the original page ID?


Go to End


3 Posts   1333 Views

Avatar
Double-A-Ron

Community Member, 607 Posts

19 August 2010 at 10:13pm

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?

Avatar
Double-A-Ron

Community Member, 607 Posts

13 February 2011 at 8:04pm

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

Can anyone answer this question?

Avatar
swaiba

Forum Moderator, 1899 Posts

13 February 2011 at 11:36pm

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

$myvirtualpage->ContentSource()-ID;