Skip to content

anitagraham/refinerycms-page-resources

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 30 commits ahead of stasl:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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', github: 'anitagraham/refinerycms-page-resources', branch: 'master'

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" %>

About

Allows file resources to be attached to Refinerycms pages or blog entries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 61.2%
  • HTML 35.3%
  • CSS 3.5%