CM
TEMPLATES
Templates are the heart and sole of your website. Each page is modelled on the template that you create. Each page can have its own template.
Each template is a plain HTML syntax with CM tags which are substituted during web page generation. Template can have mixed HTML, wiki and PHP syntax.
Templates can be added or removed in the "templates" section of the Content Manager. Click "add" to add a template, "edit" to edit, or "delete" to remove the template. Under the options for each page will appear a drop-down menu where you can select the template to want to apply for that particular page.
Template Tags
Template tags are special tags which are replaced with their respective contents which are given at the time of page editing. These tags are globally replaced, even inside the PHP code!
Some of these tags are list below with their meaning.
{{site}} will substitute the site url{{title}} will substitute the title of the page
{{author}} will substitute the author of the template
{{keywords}} will substitute the keywords given for the page
{{description}} will substitute the description of the page
{{version}} will substitute the version of CM
{{content}} will substitute the contents of the page
{{modified}} will substitute the creation time stamp of the page
A sample HTML template will look something like this.
<!DOCTYPE html>
<html>
<head>
<title>{{title}}</title>
<link rel='stylesheet' href='{{site}}/templs/{{style}}.css' type=text/css>
<meta name="description" content="{{description}}">
<meta name="keywords" content="{{keywords}}">
<meta name="generator" content="{{version}}">
<meta name="author" content="{{author}}">
</head>
<body>
<h1>CM</h1>
<a href='home'>HOME</a> ›
<a href='download'>DOWNLOAD</a> ›
<a href='help'>HELP</a>
<hr>
{{content}}
</body>
</html>