Skip to content
GBH edited this page Jul 8, 2011 · 76 revisions

ComfortableMexicanSofa (CMS Engine for Rails 3 apps)

ComfortableMexicanSofa's content management is simple, yet incredibly flexible. Here's how it's done:

CMS Layout Cms Page Creation Final Result
<html>
  {{ cms:page:header }}
  {{ cms:page:body }}
  {{ cms:page:footer }}
</html>
      
[ form field for header ]
[ form field for body   ]
[ form field for footer ]
      
<html>
  header content
  body content
  footer content
</html>
      

Step 1: First, a Layout is created. There you define your HTML structure for the page and tags that are used to populate content.
Step 2: Tags that were defined in the Layout dictate what form fields are going to be rendered during Page creation.
Step 3: When rendering a Page, Layout content and Page content (along with everything else) are merged and displayed.

Using CMS from your Application

Contact

You if you have any questions feel free to contact me via GitHub or @GroceryBagHead