For spree 0.30 see the fork here : github.com/spree/spree-static-content
Good, clean content management of pages for Spree. You can use this to:
Add and manage static pages such as an 'About' page.
Show a static page instead of existing dynamic pages such as the home page, products pages, and taxon pages.
To override a dynamic page, use the path of that dynamic page as the slug when you create your page in the Spree Administration area, including the leading slash. For example:
to override the home page, use a path of '/' (without quotes).
to override a product page, use its path, e.g. '/products/apache-baseball-jersey' (without quotes).
The dynamic page can be made available again if you delete the static page or change its slug.
Create your own copy of the app/views/static_content/show.html.erb template in your site extension to change the layout of the static pages. Depending on your view path, you may also need to move vendor/extensions/static_content/show.html.erb to the side for your own template to get used instead.
<ul> <% for page in Page.header_links do %> <li><%= link_to page.title, page.link %></li> <% end %> </ul>
<<<<<<< HEAD:README.rdoc We load the localization extension first to prevent its filter from being omitted from the filter chain.
Hope to resolve this workaround in the near future, see bug here for more info: railsdog.lighthouseapp.com/projects/31096-spree/tickets/653-specifying-filters-in-extensions-can-create-filter-chains-missing-filters
Add this to your environment.rb inside the
“Spree::Initializer.run do |config|” block:
1. Add `gem “spree_static_content”` and `gem “spree_editor”, :path => “../../spree_editor”` to your Gemfile
Run `bundle install`
Run `rails g spree_static_content:install`
Run `rake db:migrate`
Run `rake spree_editor:install`