/** * Gets the actions for the bottom of the panel * * @return FieldList */ public function getSecondaryActions() { if (!$this->SubjectPageID || !$this->GridFieldName) { return false; } $actions = parent::getPrimaryActions(); $actions->push(DashboardPanelAction::create($this->ViewAllLink(), _t('Dashboard.VIEWALLGRIDFIELD', 'View all'))); return $actions; }
/** * Gets the actions for the bottom of the panel * * @return FieldList */ public function getSecondaryActions() { if (!$this->ModelAdminClass || !$this->ModelAdminModel) { return false; } $actions = parent::getPrimaryActions(); $actions->push(DashboardPanelAction::create($this->ViewAllLink(), sprintf(_t('Dashboard.VIEWALL', 'View all %s'), $this->PluralModelName()))); return $actions; }
public function getSecondaryActions() { if (!$this->Subject || !$this->ParentID) { return false; } $actions = parent::getSecondaryActions(); $actions->push(DashboardPanelAction::create($this->ViewAllLink(), sprintf(_t('Dashboard.VIEWALL', 'View all %s'), $this->SubjectPluralName()))); return $actions; }
public function getSecondaryActions() { $actions = parent::getSecondaryActions(); $actions->push(DashboardPanelAction::create($this->Link('processform'), "Post Blog")); return $actions; }