\NewsHolder
Synopsis
class NewsHolder
extends Page
{
- // members
- private static string $description = 'News article collection holder';
- private static array $allowed_children = ;
- private static array $extensions = ;
- private static integer $articles_per_page = 10;
- // methods
- public FieldList getCMSFields()
- public DataList getArticleList()
- public DataList getTagList()
- public ArrayList getArchiveList()
- public ArrayList HolderController()
Hierarchy
Extends
- Page
Members
private
- $allowed_children — array
- $articles_per_page — int
- $description — string
- $extensions — array
Methods
public
- HolderController() — Used by templates to access and iterate over archive years/months
- getArchiveList() — Generates an ArrayList of archive years/months that contain news articles.
- getArticleList()
- getCMSFields()
- getTagList() — List of News tags used by articles in this section