README.markdown in cms-lite-0.2.7 vs README.markdown in cms-lite-0.3.1
- old
+ new
@@ -53,9 +53,20 @@
------------------
1. CMS Lite Requires a login method called 'login_required' that will be called in the event the user is not logged in and attempts to load a protected page.
2. Don't mix directories it will mess up the routes. ie if you have a directory named cmslite in pages don't create a directory called cmslite under protected-pages.
If you do Rails won't know which directory to route to.
+Layouts:
+------------------
+By default cms lite will look for a layout named 'application' and use that to render all pages. You can override that behavior with an initializer.
+Add a file to config/initializers and name it cms_lite.rb. Add the following line to that file:
+
+CmsLite.cms_layouts = { '/cms' => 'cms_template_', '/help' => 'help', :default => 'default'}
+
+The line above will tell cms lite to render the 'cms_template' for any file located under '/content/pages/en/cms' and will also use the 'help' layout
+for any pages located under '/content/pages/en/help'. You can specify a default template to be use when no other template is specified by adding
+:default => 'template name'. Modify the configuration to meet your needs.
+
Routes:
------------------
CMS Lite will add a route for each subdirectory found under /content/pages/en and /content/protected-pages/en.