Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
News Plugin for RefineryCMS
Ruby

This branch is 297 commits behind refinery:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
features
lib
spec/models
license.md
readme.md
refinerycms-news.gemspec

readme.md

News

Refinery News

About

Refinery's news engine allows you to post updates to the news section of your website.

Key features:

  • Default news page shows a summary of recent news posts
  • Detail view shows the full post and also linked to recent news on the "side bar"

Requirements

RefineryCMS "core" engine version 1.0.0 or later.

Gem Installation using Bundler (The very best way)

Include the latest gem into your Refinery CMS application's Gemfile:

gem "refinerycms-news", '~> 1.2'

Then type the following at command line inside your Refinery CMS application's root directory:

bundle install
rails generate refinerycms_news
rake db:migrate

Customising the views

Type this command at your project root to override the default front end views:

$ rake refinery:override view=news_items/*
Copied view template file to app/views/news_items/_recent_posts.html.erb
Copied view template file to app/views/news_items/index.html.erb
Copied view template file to app/views/news_items/show.html.erb

RSS (Really Simple Syndication)

To get RSS for your entire site, insert this into the head section of your layout after installing:

<%= auto_discovery_link_tag(:rss, news_items_url(:format => 'rss')) %>
Something went wrong with that request. Please try again.