A long-lived project that still receives updates
Pageflow Page Type for links to external sites
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.7, < 18
 Project Readme

Pageflow External Links

Gem Version Build Status

Page type to display links to external pages.

Installation

Add this line to your application's Gemfile:

gem 'pageflow-external-links'

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

Pageflow.configure do |config|
  config.plugin(Pageflow::ExternalLinks.plugin)
end

Include javascripts and stylesheets:

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

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

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

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

If you are using Sass < 3.4, import the legacy theme:

# app/assets/stylesheets/pageflow/themes/default.scss
@import "pageflow/external_links/themes/legacy";

With Sass 3.4 or newer, you can use the default theme:

# app/assets/stylesheets/pageflow/themes/default.scss
@import "pageflow/external_links/themes/default";

Mount the routes in config/routes.rb:

authenticated do
  mount Pageflow::ExternalLinks::Engine, at: '/external_links'
end

Install dependencies:

bundle install

Copy migrations of pageflow-external-links into your project:

bundle exec rake pageflow_external_links:install:migrations

Migrate the database:

bundle exec rake db:migrate

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