adding a screenshot

Oleg committed Feb 07, 2011
commit 478e636f3677c142d02e119c39ddf4b0584327f9
Showing 3 changed files with 2 additions and 96 deletions
README.md +2 -1
@@ @@ -32,6 +32,8 @@ Before creating pages and populating them with content we need to create a layou
Once you have a layout you may start creating pages and populating content. It's that easy.
+ ![Sofa's Page Edit View](https://github.com/twg/comfortable-mexican-sofa/blob/master/doc/page_editing.png)
+
CMS Tags
--------
There are a number of cms tags that define where the content goes and how it's populated. **Page** and **Field** tags are used during layout creation. **Snippet**, **Helper** and **Partial** tags can be peppered pretty much anywhere. Tag is structured like so:
@@ @@ -155,4 +157,3 @@ There's a rake task that makes moving fixtures into database (and vice-versa) ea
What else?
----------
Versioning control will be eventually implemented. Also I'd love to hear ideas how this CMS can be improved. But feel free to just fork and hack away.
-
\ No newline at end of file
doc/README_FOR_APP +0 -95
@@ @@ -1,95 +0,0 @@
- :type can be 'string', 'text', ('rich_text', 'datetime')
-
- < cms:page:default >
-
- < cms:page:label:type > # page content that gets rendered
- < cms:field:label:type > # page content that not rendered, but accessible via @cms_page object
- < cms:snippet:label > # snippet content that gets rendered
- < cms:partial:path > # interface to Rails partial
-
- ??? pages need to be aware of tags inside of them
-
-
- MAYBE: allow html escaping based on tag definition
-
-
- Example:
- --------
- parent layout:
-
- <cms:field:css/>
- <cms:field:meta_keywords/>
- <cms:field:google_tracking/>
-
- <cms:page:header>
- <cms:page:content> <- child layout content goes here
- <cms:page:footer>
-
- child layout
-
- <cms:page:left>
- <cms:page:image:file>
- <cms:page:right>
-
- Repeatable partials:
- --------------------
- Stored as a serialized array data
-
- <cms:group:person>
- <person:name:string/>
- <person:bio/>
- </cms:group:person>
-
- -- Person ---
- Blah: [ ]
- Meh: [ ]
- + add more person
-
- -- Car ---
- Something: [ ]
- + add more car
-
-
- File Upload Field
- -----------------
- < cms:page:avatar:file >
- !!! this allows uploading of files and attaches them to an Asset system. Content stores ID of the asset.
-
-
- < cms:group:person:face:file > <- this will make many files, how to link???
- < cms:group:person:name >
-
-
- STI?? [ merging CmsTag class with CmsPageContent AR class ]
- -----------------------------------------------------------
-
- CmsPageContent <- generic old 'cms_block'
- CmsPageStringContent
- CmsPageTextContent
- CmsPageFileContent ???
- CmsGroupContent
-
- CmsFieldStringContent < CmsPageContent
-
-
- IRB Escaping
- ------------
- < cms:partial:blsh> -> "<%= render blah %>" <-------- this is OK
- <%= blah %> <-------- this is NOT OK
-
-
- Can run irb escaping after pages and snippets are expanded.
- Partials are injected later and should not be escaped.
-
-
- Rendering Process
- -----------------
- Layout
- => Form
- -> render form, with possible db content
- -> save form
- => Page
- -> get defined tags
- -> replace tags with content from db
-
- Page
\ No newline at end of file
doc/page_editing.png +0 -0