Basic example template

We need your assistance to make the documentation accurate, user friendly and understandable. Therefore we welcome any tips or suggestions regarding documentation. Thank you in advance for your contribution.

However, we will not respond to technical support questions submitted using this form. If you are having difficulty with CMSMS and cannot find the solution on this website, please submit your question appropriately on our support forum at: http://forum.cmsmadesimple.org. Please remember to follow the forum rules when posting.

CMS Made Simple™ Partner



This section has not yet been updated for version 2.0. We're working on it!

Below a basic example HTML template. You can see the CMSMS tags between the structure of the regular HTML components.

{process_pagedata} {* Adds page specific metadata to the page *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <!-- Change "en" to your language -->

<head>
   <title>{title} | {sitename}</title> <!-- Title of the page | Site name from Global Settings -->
   {metadata} <!-- Adds Global Metadata to the page -->
   {cms_stylesheet} <!-- Adds attached stylesheets to the page -->
</head>

<body>
<div id="pagewrapper">

   <div id="header">
      <h1>{sitename}</h1> <!-- Site name from Global Settings -->
   </div>

   <div id="menu">
      {menu} <!-- Show all the menu buttons -->
   </div>

   <div id="breadcrumbs">
      {cms_breadcrumbs} <!-- Show breadcrumbs pagelinks -->
   </div>

   <div id="content">
      <h2>{title}</h2> <!-- Title of the page -->
      {content} <!-- Page content -->
   </div>

   <div id="footer">
      {global_content name='footer'} <!-- Extract all footer code to a global content block -->
   </div>

</div>
</body>

</html>
Global Content Block called "footer"
<p>Copyright &copy; {custom_copyright} <a href="http://www.cmsmadesimple.org" target="_blank">CMS Made Simple&trade;</a></p>