Sapid
Navigation
XML Sapiens

CMS is compatible with XML Sapiens 1.1

XML Sapiens
SAPID user interface is:

Friendly
Medium
Inconvenient

Home › English › Expert mode › Templates
Print this page

Templates management interface


Now let us investigate Templates interface. Here you find a list of existing templates of your site documents. As we said, template defines the way documents look at your site. In this interface you can create new template, edit and delete existing ones. Also you can manage other useful files like style sheets, JavaScript files etc. Let us create new template. Click Create new template button which drives us to template creating interface. First of all, define new template's filename, then define template's representation code. For example,

<html>
       <body>
              <h1>Title</h1>
              Page content
       </body>
</html>

But what if we want to define that Title and Page content should be editable during administrative session? Select word title and click left button a bit lower then field with our presentation code. This will invoke a window with a small form. Define title and choose type for a pointer to a query container. For example, title and string. Word Title will be replaced with a query container pointer. Now select page content text and perform the same operations. Define body and visual editor as container's name and type. Now we have a presentation code similar to this:

<html>
       <body>
              <h1><sapi:apply name="qc.title.value" type="text" /></h1>
              <sapi:apply name="qc.body.value" type="publication" />
       </body>
</html>

After saving changes, template will appear in the common templates list and it can be assigned to your site documents in the structure management interface.

Templates management interface

While creating and editing templates you can also define placeholders for common blocks of content (SDC), include system module (DDC) or insert a value of a system environment variable. But to understand, how to use them it is recommended to read system documentation.

Next Next