Giter VIP home page Giter VIP logo

spree-comatose's Introduction

Spree Comatose CMS

Note:
AASM and Role-based authorization are not currently implemented in this fork, however the database columns are present if you would like to use those systems. For an example application currently using this, check out http://github.com/scullygroup/scully-rails-template

Also, there are a few custom options included that can be specified in the comatose_config.rb initializer located in config/initializers. Options include allow/disallow delete, allow/disallow add child, allow/disallow reordering, etc.

Documentation

Spree-Comatose is a Spree Commerce Extension of the popular Comatose plugin.

It’s intended for simple CMS support:

  • Nested pages
  • Versioning
  • Page markup in Textile, Markdown, RDoc, or easily add your own
  • Page processing through Liquid or ERb
  • Engines Ready for easy installation/migration
  • Completely self-contained within plugin folder

Requirements:

  • Spree
  • The engines plugin for Rails 2.3.4

This plugin includes the following plugins in “engine_plugins”, and they are git submodules.

  • acts_as_list
  • acts_as_tree
  • pagnating_find
  • respond_to_parent

You may have to remove them if they conflict with other versions that you are using.

Getting ComatoseEngine Running

  1. Install the engines plugin:
    
      $ script/plugin install git://github.com/lazyatom/engines.git
      
  2. Put the comatose engine plugin into plugins directory (use one of the following methods):
    • If you’re not using git, and just want to add the source files:
      
          Download a tarball from https://github.com/bcalloway/comatose-engine/tarball/master and unpack it into /vendor/plugins/comatose\_engine
          
    • Using git, make a shallow clone of the comatose_engine repository:
      
            $ git clone --depth 1 git://github.com/bcalloway/comatose-engine.git vendor/plugins/comatose_engine
            
    • If you want to keep your comatose_engine plugin up to date using git, you’ll have to add it as a submodule (http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#submodules)
      
            git submodule add git://github.com/bcalloway/comatose-engine.git vendor/plugins/comatose_engine
            git submodule init
            git submodule update
            
    • Make sure you rename your CE directory to `comatose_engine` (note the underscore) if it isn’t named that for some reason
  3. Create your database and modify your `config/database.yml` appropriately.
  4. Modify your environment.rb as indicated below:
    
        #
        require File.join(File.dirname(__FILE__), 'boot')
        require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
        #
        Spree::Initializer.run do |config|
          config.plugins = [:engines, :comatose_engine, :all]
          config.plugin_paths += ["#{RAILS_ROOT}/vendor/plugins/comatose_engine/engine_plugins"]
          config.extensions = [:comatose_cms, :all]
          ... Your stuff here ...
        end
        #
      
  5. Generate the comatose engine migrations:
    
      $ script/generate plugin_migration
      
  6. From the command line:
    
      $ rake db:migrate
      

Optional Configuration

Please take a look at the template used to generate sample Rails app here: http://github.com/scullygroup/scully-rails-template

Here is the comatose-engine plugin that this extension is based on: http://github.com/bcalloway/comatose-engine

Spree-Comatose and Comatose Engine are released under the MIT license.

spree-comatose's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.