A flexible news module for SilverStripe
PHP Scheme
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_config
code
images
templates
.editorconfig
.gitattributes
.scrutinizer.yml
.travis.yml
LICENSE
README.md
composer.json

README.md

SilverStripe Newsly

Newsly is a simple news/blog module for SilverStripe. It aims to offer configurable and optional features that cater to a range of common news-section requirements.

Requirements

Maintainers

Features

  • NewsHolder and NewsArticle page types
  • Articles managed in gridfield with lumberjack
  • Articles can have images and attachments (optional)
  • Articles can have tags (optional)
  • Related articles (related via shared tags)
  • Article Authors (optional, can be configured as a simple string or a NewsAuthor object/profile)
  • Archive list, Tag list functions

Installation

composer require sheadawson/silverstripe-newsly

Configuration

The following configurations can be set in your yml config:

NewsArticle:
  setting: value
Setting Description Options Default
enable_attachments Enables a file attachment field in the NewsArticle CMSFields boolean true
enable_images Enable documents to be attached to articles boolean true
enable_summary Enables a Summary HTMLText field on NewsArticle, to be used for the article introduction/summary. boolean true
enable_tags Enables Article Tagging. Disable this to remove the Tag field from the News Article CMS Fields boolean true
enable_featured_articles Enables a "Feature this Article" check box to the News Article CMS Fields. You can use this to feature worthy articles on a home page, for example boolean true
image_folder Folder where article images should be stored string news/images
attachment_folder Folder where article attachments should be stored string news/attachments
author_mode Author mode can be:
- string "string" to enable an Author text field (default)
- string "object" to enable Author DataObject
- boolean false to disable Article Authors
string boolean