Socket
Book a DemoInstallSign in
Socket

refinerycms-image_slideshows

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

refinerycms-image_slideshows

2.0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

Image Slideshows

Refinery Image Slideshows

Refinery Image Slideshows

About

Image Slideshows allows you to create groups of images for use by a JavaScript image slider.

Suggested image slider: Nivo Slider

Requirements

Refinery CMS "core" engine version 2.0.0 or later.

Gem Installation

Include the latest gem into your Refinery CMS application's Gemfile:

gem "refinerycms-image_slideshows", '~> 2.0.1'

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

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

How to display a slideshow with Nivo Slider:

  <body>
    <% main_slideshow = Refinery::ImageSlideshows::ImageSlideshow.find_by_title('Demo') %>
    <div id="wrapper">
      <div class="slider-wrapper theme-default">
        <div id="slider" class="nivoSlider">
          <% main_slideshow.image_slides.each do |image_slide| %>
            <%= link_to image_slide.link_url do %>
              <%= image_tag image_slide.image.url, :alt => image_slide.title, :title => image_slide.caption %>
            <% end %>
          <% end %>
        </div>
      </div>
    </div>
    <script type="text/javascript" src="/javascripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="/javascripts/jquery.nivo.slider.js"></script>
    <script type="text/javascript">
      $(window).load(function() {
          $('#slider').nivoSlider({
            <%= raw main_slideshow.js_config %>
          });
      });
    </script>
  </body>

FAQs

Package last updated on 10 Jan 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.