Hi there,
I have a dataobject called Sizes that stores the width and height of an object. I want to be able to show the square meters as a total in model admin, How do i do that:
class Sizes extends DataObject {
static $db = array(
'Width'=>'Decimal',
'Height'=> 'Decimal',
);
And in model admin i have
class SizesAdmin extends ModelAdmin {
static $managed_models = array('Sizes');
static $url_segment = 'sizes';
static $menu_title = 'Sizes';