I want to load page content from another page into another page, by using the site tree dropdown. I have everything in place, but I am not sure how to add the code to grab the page...
This works
<div class="typography"><h1><% control Title %>$XML<% end_control %></h1>
<% control Page(disclaimer) %>$Content<% end_control %></div>
This does not
<div class="typography"><h1><% control Title %>$XML<% end_control %></h1>
<% control Page(MyDataFieldName) %>$Content<% end_control %></div>
My page code... All seems to do well.
$fields->addFieldToTab('Root.Content.Main', new TreeDropdownField('DuplicateContentPage', 'Select Page:', 'SiteTree', 'URLSegment', 'MenuTitle'));
In the databse, the value is 0 (zero), and I need it to be the page name - like home, or special-footer
Thank you
Steve Nyhof