1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
class DivertTestPage extends Page {
	public static $db = array(
		'DivertURL' => 'Varchar(255)',
		'DivertURLTwo' => 'Varchar(255)'
	);
	
	public function getCMSFields()
	{
		$fields = parent::getCMSFields();
		$fields->addFieldToTab("Root.Content.Stratagem", 
			new TreeDropdownField('DivertURL', 'Select Offer Ended Page:', 'SiteTree', 'URLSegment', 'MenuTitle'));

		$fields->addFieldToTab("Root.Content.Stratagem", 
			new TreeDropdownField('DivertURLTwo', 'Select Offer Ended Page:', 'SiteTree', 'URLSegment', 'MenuTitle'));
			
		return $fields;
	}
}

class DivertTestPage_Controller extends Page_Controller {
	
}