Page types for linking to pages inside a Pageflow.
Add this line to your application's Gemfile:
# Gemfile
gem 'pageflow-internal-links'
Register the page types:
# config/initializers/pageflow.rb
Pageflow.configure do |config|
config.page_types.register(Pageflow::InternalLinks.grid_page_type)
end
Include javascripts and stylesheets:
# app/assets/javascripts/pageflow/application.js
//= require pageflow/internal_links
# app/assets/javascripts/pageflow/editor.js
//= require pageflow/internal_links/editor
# app/assets/stylesheets/pageflow/application.css.scss
@import "pageflow/internal_links";
# app/assets/stylesheets/pageflow/editor.css.scss
@import "pageflow/internal_links/editor";
Import the default theme additions:
# app/assets/stylesheets/pageflow/themes/default.css.scss
@import "pageflow/internal_links/themes/default";
@import "pageflow/internal_links/themes/default/list_as_multiple_choice";
Install dependencies:
bundle install
Copy migrations of pageflow-internal-links into your project:
bundle exec rake pageflow_internal_links:install:migrations
Migrate the database:
bundle exec rake db:migrate
Restart the application server.
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.
Edit the translations directly on the pageflow-internal-links locale project.