Sha256: 7e09e1c55285274685aa0cb379e620ebbf75b38f786d3153e0e7561cc1398afe
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
# Page Options Engine for Refinery CMS ## About Page options allows you to add key/value pairs to a refinery page ## Requirements * refinerycms >= 2.0.0 ## Features * Ability to add key/value pairs ## Install Add this line to your applications `Gemfile` ```ruby gem 'refinerycms-page-options', '~> 2.0.0' ``` Next run ```bash bundle install rails generate refinery:page_options rake db:migrate ``` Now when you start up your Refinery application, edit a page and there should be a new "Options" tab. ## Usage `app/views/refinery/pages/show.html.erb` If you don't have this file then Refinery will be using its default. You can override this with ```bash rake refinery:override view=refinery/pages/show ``` ```erb <% content_for :body_content_right do %> <ul id='specification'> <% @page.page_options.each do |option| %> <li> <%= option.key %> - <%= option.value > </li> <% end %> </ul> <% end %> <%= render :partial => "/refinery/content_page" %> ```r :partial => "/refinery/content_page" %> ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-page-options-2.1.2 | readme.md |
refinerycms-page-options-2.1.1 | readme.md |
refinerycms-page-options-2.1.0 | readme.md |