Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

axllent/silverstripe-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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