Models and blocks

2 views
Skip to first unread message

jsoo

unread,
Dec 14, 2010, 6:15:30 PM12/14/10
to Escher CMS Developer Mailing List
What are models and how can one use them? I had assumed it to be a way
of creating customizable content types, but there seems to be no way
of creating children from a model.

Blocks: is that the content-side equivalent of snippets? I.e.
arbitrary units of content/code?

Art Age Software

unread,
Dec 14, 2010, 7:36:09 PM12/14/10
to escher-...@googlegroups.com
A model is a custom page type. Create a model with all the custom
parts you like, optionally pre-filled with default content. Models
appear in the drop-down menu when you add a new child page.

> Blocks: is that the content-side equivalent of snippets? I.e.
> arbitrary units of content/code?

Yep.

jsoo

unread,
Dec 15, 2010, 9:30:29 AM12/15/10
to Escher CMS Developer Mailing List
How difficult would it be to decouple models from pages, so that
models could be used with other content types (links, files, images)?
Pages already allow you to add/remove parts, making models seem like a
convenience but not a necessity. The other content types don't, and I
already wish I could use models to extend them.
Message has been deleted

jsoo

unread,
Dec 15, 2010, 10:39:31 AM12/15/10
to Escher CMS Developer Mailing List
On Dec 14, 7:36 pm, Art Age Software <artag...@gmail.com> wrote:
> A model is a custom page type. Create a model with all the custom
> parts you like, optionally pre-filled with default content. Models
> appear in the drop-down menu when you add a new child page.


How to output those custom parts using et tags?

jsoo

unread,
Dec 15, 2010, 11:36:43 AM12/15/10
to Escher CMS Developer Mailing List
On Dec 15, 10:39 am, jsoo <croqu...@gmail.com> wrote:
> How to output those custom parts using et tags?

OK, <et:content part="foo" />

Art Age Software

unread,
Dec 15, 2010, 1:15:55 PM12/15/10
to escher-...@googlegroups.com
Models aren't intended to extend pages. They are cookie cutters. They
allow you to create a set of standard page types to present to the
client, so that the client can add content more easily and in a less
error-prone manner.

Eventually, the other content types will support custom meta-data,
which should help with the extensibility of those content types.

Art Age Software

unread,
Dec 15, 2010, 1:17:32 PM12/15/10
to escher-...@googlegroups.com
Note, there is nothing you can add to a model that you cannot add to a
one-off page. Pages, by nature, are extensible with custom parts -
whether using models or not. A model simply allows you to snapshot a
set of page customizations for future use.
Reply all
Reply to author
Forward
0 new messages