\NewsPage
Represents a default news article page type
This code is forked from https://gitlab.cwp.govt.nz/cwp/cwp (16/Jul/2014)
- Author: scienceninjas@silverstripe.com
- License: BSD License (http://silverstripe.org/bsd-license/)
Synopsis
class NewsPage
extends DatedUpdatePage
{
- // members
- private static string $description = 'A generic news article';
- private static string $default_parent = 'NewsHolderPage';
- private static boolean $can_be_root = false;
- private static boolean $enable_featured_image = false;
- private static boolean $enable_abstract = false;
- private static boolean $enable_author = false;
- private static string $icon = 'datedupdates/images/icons/sitetree_images/bell.png';
- public string $pageIcon = 'datedupdates/images/icons/sitetree_images/bell.png';
- private static array $db = ;
- private static array $has_one = ;
- // methods
- public void fieldLabels()
- public void getCMSFields()
- // Inherited methods from DatedUpdatePage
- public array summaryFields()
- public void populateDefaults()
- public array|string fieldLabels()
- public FieldList getCMSFields()
Hierarchy
Extends
Members
private
- $can_be_root
- $db
- $default_parent
- $description
- $enable_abstract
- $enable_featured_image
- $has_one
- $icon
public
- $pageIcon
Methods
public
Inherited from DatedUpdatePage
public
- fieldLabels()
- getCMSFields()
- populateDefaults() — Add the default for the Date being the current day.
- summaryFields()