Running SilverStripe 3.1.1.
I am trying to remove the CSS requirement for PhotoGalleryHolder pages so then I don't have extra CSS files downloading that I don't even use in my overridden templates.
This is what I am currently using, but doesn't seem to work:
mysite/code/PhotoGalleryHolder.php:
class PhotoGalleryHolderController_Extension extends Extension {
public function init() {
Requirements::block("basic-galleries/css/gallery.css");
}
}
mysite/_config.php:
PhotoGalleryHolder_Controller::add_extension('PhotoGalleryHolderController_Extension');