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.

General Questions /

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

VirtualPage - How to get the original page ID?


Reply


3 Posts   1010 Views

Avatar
Double-A-Ron

Community Member, 604 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, 604 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, 1804 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;