Sha256: 0fda17afaad03b0cc6c6d1f219454d320b1f3ebc37fb6b591c0cb30c2de76d49

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

# Pageflow External Links

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.register_page_type(Pageflow::ExternalLinks::PageType.new)
    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.css
    @import "pageflow/external_links";

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

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.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pageflow-external-links-0.0.1 README.md