Templates does four things:
- Provides a customized interface to the page editor
- Restricts what page-parts may appear on a page of that type
- Hides and consolidates design aspects about how parts of the page
will be rendered
- Auto-selects/restricts the page-class (Archive, File Not Found, etc).
For example, let’s say I have a template for press releases. Press
releases consist of a short description (that also serves as the first
paragraph), a longer description, a location, contact information, and
standard info about the company. So I might set up a template like so:
Short description: One-line
Long description: Plain textarea [Textile]
Contact information: Plain textarea
Then I would set the structure (which becomes the ‘body’ page-part) to
be something like:
This allows my Layout to serve as a wireframe for the whole site, with
many different page designs filling the “content well”. I would only
need a single <r:content /> tag within the layout to accomplish this.
Does this answer your question?
p.s. Digital Pulp (Josh, Justin & friends) prefer to call them
content-types and thus renamed them as such in their internal version of