这是indexloc提供的服务,不要输入任何密码
Skip to content

refinery/refinerycms-page-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.6'

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.

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

About

Adds an images tab to your pages so you can format a group of images really nicely on the frontend

Resources

Stars

Watchers

Forks

Packages

No packages published