axllent/silverstripe-news

This package is abandoned and no longer maintained. No replacement package was suggested.

News module for SilverStripe 3

Installs: 209

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 4

Forks: 2

Open Issues: 0

Type:silverstripe-module

1.0.2 2017-04-27 02:55 UTC

This package is auto-updated.

Last update: 2023-05-27 19:54:15 UTC


README

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