Page type adding an embedded iframe with any arbitrary URL.
Add this line to your application's Gemfile:
# Gemfile
gem 'pageflow-embedded-iframe'
Run bundle install
Register the page type:
# config/initializers/pageflow.rb
Pageflow.configure do |config|
config.page_types.register(Pageflow::EmbeddedIframe.page_type)
end
Include javascript/stylesheets:
# app/assets/javascripts/pageflow/application.js
//= require pageflow/embedded_iframe
# app/assets/javascripts/pageflow/editor.js
//= require pageflow/embedded_iframe/editor
# app/assets/stylesheets/pageflow/application.css.scss;
@import "pageflow/embedded_iframe";
# app/assets/stylesheets/pageflow/editor.css.scss;
@import "pageflow/embedded_iframe/editor";
# app/assets/stylesheets/pageflow/themes/default.css.scss
@import "pageflow/embedded_iframe/themes/default";
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.
TBA