Skip to content
GBH edited this page Feb 25, 2011 · 61 revisions

Comfortable Mexican Sofa

A more detailed explanation of functionality outlined in README

** Please feel free to edit with Wiki **

Managing Content

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

CMS Layout                          CMS Page Creation                   Final Result
╔═══════════════════════════╗       ╔═══════════════════════════╗       ╔═══════════════════════════╗
║  <html>                   ║       ║                           ║       ║  <html>                   ║
║    {{cms:page:header }}   ║       ║ [ form field for header ] ║       ║    header content         ║
║    {{cms:page:body }}     ║  ==>  ║ [ form field for body   ] ║  ==>  ║    body content           ║
║    {{cms:page:footer }}   ║       ║ [ form field for footer ] ║       ║    footer content         ║
║  </html>                  ║       ║                           ║       ║  </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

Extending Admin Area

CMS Seeds

Extras