Code Monkey home page Code Monkey logo

spree-static-content-plain's Introduction

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/content/show.html.erb template in your site extension to change the layout of the static pages.

Example to use the static pages inside a menu

<ul>
  <% for page in Page.header_links do %>
    <li><%= link_to page.title, page.link %></li>
  <% end %>
</ul>

Fork goal

Cut WYSIWYG editor for using pluggable editor (TODO: place-ext-link-here).

Installation

  1. Add to your Gemfile gem ‘spree_static_content_plain’, :git => ‘git://github.com/x2es/spree-static-content-plain.git’

  2. Run ‘bundle install`

  3. Run ‘rails g spree_static_content_plain:install`

  4. Run ‘rake db:migrate`

spree-static-content-plain's People

Contributors

bdq avatar bregor avatar chipiga avatar eliotsykes avatar gudata avatar joren avatar nikolaenkov avatar peterberkenbosch avatar pkordel avatar romul avatar swistak avatar wesrog avatar x2es avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.