Add a slider to the spree homepage
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bèr Kessels cdfd169570 Add crude publish_at feature 7 years ago
app Add crude publish_at feature 6 years ago
config Use spree backend sortable table power 7 years ago
db/migrate Add crude publish_at feature 6 years ago
lib Update install_nivo_generator.rb 7 years ago
script initial commit 9 years ago
spec Adding product_id to slides 8 years ago
vendor/assets Update Nivo slider version 7 years ago
.gitignore Gemfile.lock should not exist in an extension's dir 9 years ago
.rspec initial commit 9 years ago
Gemfile update gemspec to spre 2.2 7 years ago
LICENSE initial commit 9 years ago
README.textile Add instructions to run the migrations on installation 7 years ago
Rakefile moved to gemcutter 9 years ago
Versionfile Still list older versions. 8 years ago
spree_slider.gemspec update gemspec to spre 2.2 7 years ago


h1. SpreeSlider

Add a slider to the homepage of your Spree site, and manage the slideshow from within the Admin panel.

h2. Installation

To install, add spree_slider to your @Gemfile@ and run `bundle install`:

gem 'spree_slider', github: 'priviterag/spree_slider'

Then install and run the migrations to add the tables:
bundle exec rake railties:install:migrations
bundle exec rake db:migrate

This extension comes with three sliders plugins: Nivo, SimpleCarousel and Anything slider
Depending on which plugin you want to install, run the following command:

h3. Anything slider

rails generate spree_slider:install_anything

h3. SimpleCarousel slider

rails generate spree_slider:install_simple_carousel

h3. Nivo slider

rails generate spree_slider:install_nivo

The slider is almost unstyled. To customize you have to add your own css and
eventually modify the partial copied into your app folder:

h3. Or Roll your own!

You may want to theme your site your own way. If you want to include your own library such Bootstrap or Foundation.
Just add your own to your asset pipeline, and update your theme templates with appropriate markup. Example:

<% if Spree::Slide.published.count > 0 %>
<section id="slideshow">
<ul class="slide">
<% Spree::Slide.published.order('position ASC').each do |s| %>
<h1><%= s.slide_name %></h1>
<%= link_to image_tag(s.slide_image.url), url_for(s.slide_link) %>
<% end %>
<a title="<%= t(:previous) %>" class="slider-prev"><%= t(:previous)%></a>
<a title="<%= t(:next) %>" class="slider-next"><%= t(:next) %></a>
<% end %>

h2. Dynamic content management

To add dynamic content, go to the spree admin section, under 'Configuration'
and find the Spree Slider menu.

Copyright (c) 2012 "R.S.A.": released under the New BSD License