Pageflow New Pages Box

Gem Version

A small box listing the pages that were added since your last visit

Installation

Add this line to your application's Gemfile:

gem 'pageflow-new-pages-box'

Register the widget type inside the configure block in config/initializers/pageflow.rb

Pageflow.configure do |config|
  config.widget_types.register(Pageflow::NewPagesBox.widget_type, default: true)
end

Include javascripts and stylesheets:

# app/assets/javascripts/pageflow/application.js
//= require pageflow/new_pages_box

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

# Adding basic style to your theme
# app/assets/stylesheets/pageflow/themes/default.scss
@import "pageflow/new_pages_box/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-new-pages-box locale project.