Skip to content

A simple Spree Slideshow with the aim of creating a slider that's easy to use for normal users.

License

Notifications You must be signed in to change notification settings

hugosantosred/spree_showcase

 
 

Repository files navigation

Spree Showcase

Spree Showcase is a simple extension that allows you to create the good ol' slideshow. The goal is to create a slideshow extension that makes things easy for the users and programmers. Minimal effort needed.

The secondary objective is to create a slideshow template that allows most types of JS slider to be implemented easily into Spree.

Screenshot of Frontend:

Screenshot of Frontend

Admin Backend:

Screenshot of Backend

Currently, this is the first iteration of the slideshow extension at v0.5.2. Contributors are greatly welcomed =)

Next to come:

  • Adding sliders to different layout positions
  • Enabling more options to be customized in the Admin Menu

Installation

Get a clean Spree Installation

rails new spree_demo cd spree_demo spree install

In Gemfile

gem 'spree_showcase' # Ruby Gems

After That

bundle install
rails g spree_showcase:install

Remember to run rake assets:clean, otherwise the javascript library might not be loaded.

Supports Spree 1.1 and 1.3

Display

The default Deface override is automatically added to your Project in

overrides/showcase/add_showcase_to_home_layout

This default override acts to add the Showcase slide show to the main spree_application_home layout, at the top of the #wrapper div.

To change where the slide show appears, simply edit this Deface override in add_showcase_to_home_layout.

For example to add it to a home page at top of div id main-slideshow :

Deface::Override.new(
  :virtual_path => 'spree/home/index',
  :name => 'add_spree_slider_to_home_index',
  :insert_top => "#main-slideshow",
  :partial => "spree/slides/showcase.html.erb"
)

Testing

No tests have been done yet. Use at your own risk!

Copyright (c) 2012 Damon Aw, released under the New BSD License. [What is the BSD license anyway?]

About

A simple Spree Slideshow with the aim of creating a slider that's easy to use for normal users.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 94.7%
  • CSS 4.7%
  • JavaScript 0.6%