I'm trying to create a page that will hold a Top 10 Products list
Here is my Top10Page controller
class Top10Page extends Page {
public static $db = array(
'LifestyleText' => 'HTMLVarchar(255)'
);
public static $has_one = array(
);
static $has_many = array (
'ExtraPageImages' => 'ExtraPageImages'/*,
'Products'=>'Product'*/
);
static $many_many = array ('Products'=>'Product'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$source = DataObject::get('Product');
$fields->addFieldToTab("Root.Content.Top10", new CheckboxSetField("Products","Top Ten Pages",$source));
return $fields;
}
}
class Top10Page_Controller extends Page_Controller {
}
This will let me pick 10 product pages but doesn't allow for Countdown Ordering? Any Ideas?