baldwindavid / conman
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
conman /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
MIT-LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
generators/ | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb |
README
Conman
======
Description:
This is a content management system allowing for fine-grained control over what content your clients may edit.
IMPORTANT: You will need the following plugin...
- haml - http://haml.hamptoncatlin.com/download/
ALSO HIGHLY RECOMMENDED (unless you don't want to allow any fckeditor instances)
- fckeditor - svn://rubyforge.org//var/svn/fckeditorp/trunk/fckeditor
Note: If you are using the role_requirement and restful_authentication plugins there is some basic code commented out
for your use.
STEP 1
script/generate conman
STEP 2
Add these routes to your routes.rb:
map.resources :pages, :collection => {:hardcoded_example => :get}
map.resources :page_layouts
map.resources :styles
map.resources :jscripts
map.resources :snippets
map.resources :snippet_owners, :collection => {:unshared_management => :get, :edit_single => :get}
STEP 3
run rake db:migrate
STEP 4
Add this to app/controllers/application.rb...
include Conman
before_filter :edit_mode
====================
LEARN MORE
====================
http://bilsonrails.wordpress.com/2008/06/03/conman-fine-grained-ruby-on-rails-content-management-control/
====================
DEMO APPLICATION
====================
http://baldwindev.com/conman_demo/pages
Git repo for demo app...
git clone git://github.com/bilson/conman_demo.git
Copyright (c) 2008 David Baldwin, released under the MIT license

