No commit activity in last 3 years
No release in over 3 years
Page Resources Engine for Refinery CMS
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.1.0.dev
 Project Readme

Page Resources Engine for Refinery CMS

About

Page Resources allows you to relate one or more resources to any page in Refinery.

Requirements

  • refinerycms >= 2.1.0

Features

  • Ability to select one or more resources from the resource picker and relate them to a page
  • Reordering support, simply drag into order

Install

Add this line to your applications Gemfile

gem 'refinerycms-page-resources'

Next run

bundle install
rails generate refinery:page_resources
rake db:migrate

Now when you start up your Refinery application, edit a page and there should be a new "Resources" tab.

Usage

app/views/refinery/pages/show.html.erb

<% content_for :body_content_right do %>
  <ul id='files'>
    <% @page.resources.each do |file| %>
      <li>
        <%= link_to file.title, file.url %>
      </li>
   <% end %>
  </ul>
<% end %>
<%= render :partial => "/refinery/content_page" %>