Sha256: 8c3c8142e70982da466b33d350e469ce8cc093b0fc27e16d8ee4b0762a9702f0

Contents?: true

Size: 1.73 KB

Versions: 2

Compression:

Stored size: 1.73 KB

Contents

# Page Images Engine for Refinery CMS

## About

Page Images allows you to relate one or more images to any page in Refinery which makes it really easy for you to create simple image galleries with lightbox style popups on the front end page views.

## Requirements

* refinerycms >= 0.9.9 (as yet *unreleased*)

## Features

* Ability to select one or more images from the image picker and relate them to a page
* Reordering support, simply drag into order

## Install

Add this line to your applications `Gemfile`

    gem 'refinerycms-page-images', '~> 0.9.7'

Next run

    bundle install
    rails g refinerycms_page_images
    rake db:migrate

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

If you get an error like

  uninitialized constant Refinery::Pages::Tab

It means your Refinery version isn't new enough. To fix that you need to update the Refinery CMS `Gemfile` line to this

    gem 'refinerycms', :git => "git://github.com/resolve/refinerycms.git"

Then run:

    bundle install
    rake refinery:update

And then try again. Note that doing this will likely mean that you need to fix your application
for any changes that have happened since the version of Refinery CMS that you were using.

## Usage

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

    <% content_for :body_content_right do %>
      <ul id='gallery'>
        <% @page.images.each do |i| %>
          <li>
            <%= link_to image_tag(i.thumbnail("200x200#c").url), i.thumbnail("900x600").url %>
          </li>
        <% end %>
      </ul>
    <% end %>
    <%= render :partial => "/shared/content_page" %>

## Screenshot

![Refinery CMS Page Images Screenshot](http://refinerycms.com/system/images/0000/1736/refinerycms-page-images.png)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
refinerycms-page-images-0.9.8 readme.md
refinerycms-page-images-0.9.7 readme.md