Pageflow Text Page
Page type to display large texts on a page.
Installation
Add this line to your application's Gemfile
:
gem 'pageflow-text-page'
Register the page type inside the configure block in config/initializers/pageflow.rb
Pageflow.configure do |config|
config.page_types.register(Pageflow::TextPage.page_type)
end
Include javascripts and stylesheets:
# app/assets/javascripts/pageflow/application.js
//= require pageflow/text_page
# app/assets/javascripts/pageflow/editor.js
//= require pageflow/text_page/editor
# app/assets/stylesheets/pageflow/application.scss
@import "pageflow/text_page";
# app/assets/stylesheets/pageflow/themes/default.scss
@import "pageflow/text_page/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-text-page locale project.