hi i have this code
class product extends DataObject {
private static $db = array (
'Name' => 'Varchar',
'Date' => 'Date',
'Descriptions' => 'Varchar',
);
private static $has_one = array('Photo' => 'Image');
}
class MyAdmin extends ModelAdmin {
private static $managed_models = array('Product'); // Can manage multiple models
private static $url_segment = 'product'; // Linked as /admin/product/
private static $menu_title = 'Product Admin';
}
And in CMS i have dateFile but i can´t find solution to show calendar.
I think i must set datefiled config but i cant find how.
Thanx a lot
and aslo in my ModelAdmin CMSView when i edit image i want to remove some fields.