- Notifications
You must be signed in to change notification settings - Fork14
Image Slideshows engine for Refinery CMS
refinerycms-contrib/refinerycms-image-slideshows
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Image Slideshows engine forRefinery CMS allows you to display multiple slideshows.
- Manage slideshows (title, height, width, js config)
- Manage i18n slides in every slideshow (title, image, caption, body, link_url)
This version ofrefinerycms-image_slideshows supports Refinery 3.x and Rails 4.1+.To use Rails 3.x / Refinery 2.0.x use therefinerycms-image_slideshows "Refinery CMS 2-0 stable branch".
- Refinery CMS version 3.0.0 or above.
Open up yourGemfile and add at the bottom this line:
gem'refinerycms-image_slideshows',github:'bisscomm/refinerycms-image-slideshows',branch:'master'
Now, runbundle install
Next, to install the products plugin run:
rails generate refinery:image_slideshowsRun database migrations:
rake db:migrateFinally seed your database and you're done.
rake db:seedAdd this code in your HTML) :
<body><%main_slideshow=Refinery::ImageSlideshows::ImageSlideshow.includes(:image_slides).find_by_title('Your Awesome Slideshow Title')%><divid="wrapper"><divclass="slider-wrapper"><divid="slider"><%main_slideshow.image_slides.eachdo |image_slide|%><%=link_toimage_slide.link_urldo%><%=image_tagimage_slide.image.url,:alt=>image_slide.title,:title=>image_slide.caption%><%end%><%end%></div></div></div><scripttype="text/javascript">$(window).load(function(){$('#slider').nivoSlider({<%=rawmain_slideshow.js_config%>});});</script></body>
The version of Refinery to develop this engine against is defined in the gemspec. To override the version of refinery to develop against, edit the project Gemfile to point to a local path containing a clone of refinerycms.
Generate the dummy application to test against
$ bundle exec rake refinery:testing:dummy_appRun the test suite withGuard
$ bundle exec guard startOr just with rake spec
$ bundle exec rake spec- Check out ourWebsite
- Documentation is available in theguides
- Questions can be asked on ourGoogle Group
About
Image Slideshows engine for Refinery CMS
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Ruby73.2%
- HTML26.8%

