/** * Override to check if there is a custom template for this panel, otherwise fall back. * * @return string */ protected function getTemplate() { $templateName = get_class($this) . '_' . $this->SubjectPage()->ClassName . '_' . $this->GridFieldName; if (SS_TemplateLoader::instance()->findTemplates($templateName)) { return $templateName; } return parent::getTemplate(); }
/** * Override to check if there is a custom template for this panel, otherwise fall back * * @return string */ protected function getTemplate() { $templateName = get_class($this) . '_' . $this->ModelAdminClass . '_' . $this->ModelAdminModel; if (SS_TemplateLoader::instance()->findTemplates($templateName)) { return $templateName; } return parent::getTemplate(); }