Low commit activity in last 3 years
A long-lived project that still receives updates
Pageflow page types for linking to other pages.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0, < 3
>= 15.0, < 18
~> 12.0
~> 1.0

Runtime

>= 15.0, < 18
 Project Readme

Pageflow Internal Links

Gem Version Build Status

Page types for linking to pages inside a Pageflow.

Installation

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.plugin(Pageflow::InternalLinks.plugin)
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.scss
@import "pageflow/internal_links";

# app/assets/stylesheets/pageflow/editor.scss
@import "pageflow/internal_links/editor";

Import the default theme additions:

# app/assets/stylesheets/pageflow/themes/default.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. The grid page type is available by default. For the list page type enable the corresponding feature in the tab features.

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-internal-links locale project.