Project

simple_cms

0.0
No commit activity in last 3 years
No release in over 3 years
A simple CMS using CKEditor for inline editing
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3.2.6
 Project Readme

Simple CMS¶ ↑

A lightweight CMS for Ruby on Rails using CKEditor (ckeditor.com) for inline editing

Installation¶ ↑

  • Copy migrations with rake simple_cms:install:migrations and then run them

  • Add “//= require simple_cms/application” to application.js

  • Add “//= require simple_cms/simple_cms” to application.css

  • Your application must provide current_user and admin_signed_in? controller and helper methods

  • To configure the layout used for full pages, add SimpleCms.layout = ‘[your layout]’ to an initializer

  • The layout you use for full pages should have a :page_title section

Usage¶ ↑

To create editable text areas on a page, use the page_fragment method. Page_fragment takes the following options: (name required, all others optional)

  • name - a name for the text block

  • user - if the current user should be able to edit this text block, include them here

  • tag_name - tag you want the text block surrounded by (defaults to div)

  • default_text - text to display when the text block is empty. Defaults to “This text block is blank. Click on it to edit it and add content.”

TODO: instructions for configuring S3 storage for file browser