Rails CMS
16 Jan 2010
Knowledge
Thanks to the guys that build BrowserCMS, our lives has just gotten easier!
No longer we have to stick with Radiant, BrowserCMS is, we think, easier and more robust.
This post is a simple getting started guide, that will help you to:
- Install the BrowserCMS
- Create a new page
- Add text content to the newly created page
- Publish your page
$ sudo gem install browsercmsBy the time I wrote this post, the latest version was 3.0.6. Now create a project using a specific BrowserCMS template (a Rails template is simply a Ruby script with some domain-specific extensions to facilitate application configuration.)
$ rails my_new_project_name -d mysql -m http://www.browsercms.org/templates/blank.rbUnless you are not using password for your 'root' account to connect to the database, you will see this error message
Access denied for user 'root'@'localhost' (using password: NO)you can reapply the template again at anytime after you change the database configuration in config/database.yml by running
$ rake rails:template LOCATION=http://www.browsercms.org/templates/blank.rbfrom your project directory. Now run the server
$ script/serverand open your browser to http://localhost:3000/ and to log into the admin for the CMS go to http://localhost:3000/cms. In development mode the default username/password is cmsadmin/cmsadmin. You should now be logged in. Create a new page On the home page, you will see a menu labeled 'Home', you want to create new page 'About Us' with a menu link positioned below 'Home'. Now log in into the CMS admin panel and do the following:
- Click on 'SITEMAP'. The Sitemap page shows you a tree structure with all the sections and pages in your site, but you can add/edit pages/sections, and also can reorganize your pages/sections using drag and drop.
- Click on 'My Site'
- Click on 'Add Page'
- On the displayed form, there are several fields to fill out. Name and template are the important ones
- Click 'SAVE' to create a new page
- Turn on the Visual Editor
- Click on the 'Add Content' icon below your page
- Click on 'Text' on the 'Select Content Type' page
- Fill out the 'Name' and 'Content' fields. You can enter 'Tags' to your content as well
- Click 'SAVE'
