Templates
CoyoteCMS uses templates coded in PHP. Because this presents a possible security issue, templates can be only edited by admin users. There are three sets of pre-assigned variables available for use in your template.
The PHP superglobal variables, such as $_GET can be used.
<? echo $_SERVER["QUERY_STRING"]; ?>
The variables in config/config.php through the array $this->CONFIG.
<? echo $this->CONFIG["coyote_url"]; ?>
Page-specific variables through the array $this->PAGE.
<? echo $this->PAGE["article_author"]; ?>
Besides page-specific variables, $this->PAGE always contains these variables.
$this->PAGE["cms_title"] // Page Title
$this->PAGE["cms_content"] // Module Content
$this->PAGE["cms_page_id"] // Page Id
$this->PAGE["cms_page_type"] // Module Short Name
$this->PAGE["cms_doc_url"] // Filename
$this->PAGE["cms_template"] // Template ID
$this->PAGE["cms_fullurl"] // URL Minus Domain
$this->PAGE["cms_opt"] // Optional Page Field
$this->PAGE["cms_content"] // Module Content
$this->PAGE["cms_page_id"] // Page Id
$this->PAGE["cms_page_type"] // Module Short Name
$this->PAGE["cms_doc_url"] // Filename
$this->PAGE["cms_template"] // Template ID
$this->PAGE["cms_fullurl"] // URL Minus Domain
$this->PAGE["cms_opt"] // Optional Page Field
This could be a very basic template
<html>
<head>
<title><? echo $this->PAGE["cms_title"]; ?></title>
</head>
<body>
<h1><? echo $this->PAGE["cms_title"]; ?></h1>
<? echo $this->PAGE["cms_content"]; ?>
</body>
</html>
<head>
<title><? echo $this->PAGE["cms_title"]; ?></title>
</head>
<body>
<h1><? echo $this->PAGE["cms_title"]; ?></h1>
<? echo $this->PAGE["cms_content"]; ?>
</body>
</html>
You can also call $this->sub_template("template name") to include another template.
<? $this->sub_template("header_article"); ?>
<? echo $this->PAGE["cms_content"]; ?>
<? $this->sub_template("footer_article"); ?>
<? echo $this->PAGE["cms_content"]; ?>
<? $this->sub_template("footer_article"); ?>






















