Low commit activity in last 3 years
A long-lived project that still receives updates
Pageflow page type for before/after image slider.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 14, < 18
~> 1.0

Runtime

 Project Readme

Pageflow Before After

Gem Version Build Status

Page type showing before/after image sliders.

Installation

Add this line to your application's Gemfile:

# Gemfile
gem 'pageflow-before-after'

Register the page type:

# config/initializers/pageflow.rb
Pageflow.configure do |config|
  config.page_types.register(Pageflow::BeforeAfter.page_type)
end

Include javascripts and stylesheets:

# app/assets/javascripts/pageflow/application.js
//= require "pageflow/before_after"

# app/assets/javascripts/pageflow/editor.js
//= require pageflow/before_after/editor

# app/assets/stylesheets/pageflow/application.scss
@import "pageflow/before_after";

# app/assets/stylesheets/pageflow/themes/default.scss
@import "pageflow/before_after/themes/default";

Execute bundle install Restart the application server.

Troubleshooting

If you run into problems while installing the page type, please also refer to the Troubleshooting wiki page in the Pageflow repository. If that doesn't help, consider filing an issue.

Contributing Locales

Edit the translations directly on the pageflow-before-after locale project.