axllent/silverstripe-news

News module for SilverStripe 3


Keywords
blog, news, silverstripe
License
MIT

Documentation

News module for SilverStripe 3

A module to add a news page (like a blog) for SilverStripe 3. It uses DataObjects for individual news articles, mapping each one to an individual URL using $url_handlers.

Features

  • DataObjects instead of SiteTree for news articles (much neater than adding every article into SiteTree)
  • Controller $url_handlers to provide each article its own page /<newspage>/article/<article-name>-<id>/ (auto-generated)
  • Individual article date & time - will not show if in the future allowing schedules posts
  • Custom Breadcrumbs() function to add articles to breadcrumbs
  • RSS feed
  • Pagination (see below)

Requirements

  • SilverStripe >=3.1

Pagination

By default the articles get paginated per 10 articles. You can change this (for instance) in your mysite/_config/config.yml

NewsPage:
  articles_per_page: 10