Implementing Comatose plugin(micro CMS) for static pages
From LocalizationWiki
Note:
1. When updating the latest commits from svn and before running the server, remember to rake db:migrate since there are new tables. For development machines you don't need to add anything when dong db:migrate, but for the production server, you have to add "RAILS_ENV = ndlb_production".
2. When running the server, you might get the error "rake aborted! no such file to load --ruby-debug", therefore install ruby-debug: gem install ruby-debug. This is the new way to debug rails programs.
===================================================================================================
1. In the browser, open NDLB.
2. Login and go to admin. ( Before going to the next step, go to "Account Management">"Role">"System Administrator">"Edit">Select all the available roles and associate it>Save changes.)
3. Static page link can be found there.
4. Click on that link, which takes you to the comatose_admin page.(The pages and other pages under that are hierarchically organized)
5. If you click on the existing page or add child page, you will see that beside where you enter the title, there is link called more....
6. If you click on the more... link, you will find a slug under the title.(The Slug is the permalink to the page)
7. If the title of your page is "Cenetenary Celebration" then the Slug will be "cenetenary-celebration".
8. With the Slug, you build the URL. The URL would be /ndlb/pages/centenary-celebration. (Notice the "pages" within the address, that is where comatose is mapped.)
9. If you want to link to it, you can do <%= link_to 'Centenary Celebration',:controller => 'pages',:id => 'centenary-celebration' %> or more relevant to the centenary celebration, where everything is AJAX <%= link_to_remote 'Centenary Celebration'.ts,:update =>'content', :url =>{:controller => 'pages',:id => 'centenary-celebration'} %>
10. Then at the bottom of the edit page, you will see "Filter" with various options like TDoc, Simple, Textile, and No Filter. Depending on what option you select that syntax will be used. The filter will convert whatever format you choose to HTML. If you want to write straight in HTML, select 'No Filter'.
