Need help with refinerycms-news?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

123 Stars 120 Forks MIT License 441 Commits 10 Opened issues


News Plugin for Refinery CMS

Services available


Need anything else?

Contributors list

Refinery CMS News

Build Status


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"


Refinery CMS "core" engine version 2.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", '~> 2.1.0'

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

bundle install
rails generate refinery:news
rake db:migrate
rake db:seed

How to display a news feed on the homepage:

Assuming you've already overridden the homepage view:

$ rake refinery:override view=refinery/pages/home

You can render the

partial. However, you will need to set the recent News items manually, since this is normally handled in the News::Items controller:
 '/refinery/news/items/recent_posts' %>

Configuring the number of items per page

To modify the number of items per page for the news items index without affecting the archive page you must override the method in the controller that sets

for the index:

Currently the method body is:

@items =[:page])


convenience method needs to be replaced with
passed as an option. Add a decorator for the items controller with the following contents:
module Refinery::News
  ItemsController.class_eval do
    def find_published_news_items
      @items = Item.published.translated.paginate :page => params[:page],
                                                  :per_page => 8

Customising the views

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

$ rake refinery:override view=refinery/news/items/*
Copied view template file to app/views/refinery/news/items/_recent_posts.html.erb
Copied view template file to app/views/refinery/news/items/index.html.erb
Copied view template file to app/views/refinery/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:

 'rss')) %>

More Information

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.