I'm trying to alter the defaults in the Image gallery page (ie the album width, height, etc). I would like to do so in the config file so that I can upgrade to future versions easily. I believe I can do this through a DataObjectDecorator, but I'm lost on the exact way to do so, and have found little to no documentation. Here is my code this far...
ImageGalleryDecorator
class ImageGalleryDecorator extends DataObjectDecorator {
static $defaults = array (
'CoverImageWidth' => '140',
'CoverImageHeight' => '140'
);
}
_config.php
DataObject::add_extension("ImageGalleryPage","ImageGalleryDecorator");
Could something like this work? Does anyone have any ideas, or can point me in the right direction? Thanks in advance.