dennisvdvliet / pageflow-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pageflow Intro

Page type showing before/after image sliders (Digit style). Page type to display an intro page that includes an image, regular text and quoted text. Mainly to learn how to build custom page types in pageflow

Installation

Add this line to your application's Gemfile:

# Gemfile
gem 'pageflow-intro', github: 'url'

Register the page type:

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

Include javascripts and stylesheets:

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

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

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

# app/assets/stylesheets/pageflow/themes/default.css.scss
@import "pageflow/intro/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.

About


Languages

Language:Ruby 70.9%Language:JavaScript 25.7%Language:CSS 3.4%