The Theo Spears Blog

Blogging Considered Harmful (Considered Harmful)?

Creating templates with multiple content blocks in CMS Made Simple

First posted 2007-08-10 00:00:00.000004+00:00

CMS Made Simple is a fairly nice PHP content management system. It allows you to define any number of templates which control the appearance of your pages. When you create a page you choose which of these templates to associate with that page.

Each template must have a {content} tag which is replaced with the main content of the page. However it is possible to have more than one content section, each with its own content. To do this give any subsequent content sections a name.

{content block='myblock'}

Note the quotes are necessary, and there must be no spaces around the =. Any sections created like this will automatically get their own section when editing the page on the admin panel. There must always also be an unnamed content block.

It is also possible to specify other attributes for content blocks. These are 'usewysiwyg', 'id', and 'oneline'.