template.htm
The template is pure HTML - built using tables,and with PHP function calls to the cms.php.
Be aware: Several functions have their own stylesheet class, which is set both in the table cell (TD) in the template and in links (A HREF). The classes are defined in the stylesheet.
Function calls
Some of the function calls are important and can't be left out - ie. the head(), onload(), toc(), editmenu() and content(). But if you prefer not to have a document sitemaplink(), printlink(), locator(), submenu() or previouspage()/top()/nextpage() you may remove some of these codes. head() : necessary: prints link to stylesheet, meta information and page title onload() : necessary: required in the body tag in order to make the editor function toc() : necessary: prints the table of contents editmenu() : necessary: in admin mode prints the menu of the available admin functions content() : necessary: the main page content loginlink() : advised: if not logged to the system, displays a login link languagemenu() : advised: prints links for changing the language lastupdate( : advised: writes the date and time the content was last edited sitename() : optional: prints the sitename searchbox() : optional: prints a search box sitemaplink() : optional: prints the site map in the content field printlink() : optional: displays the page in a printer friendly format legallink() : required: displays the CMSimple Legal Notices
mailformlink() : optional: prints a link to a mailform for giving feedback
submenu() : optional: prints a link to the following pages if available previouspage() : optional: prints a link to the previous page top() : optional: prints a link to #TOP nextpage() : optional: prints a link to the next page locator() : optional: prints the location thread newsbox() : additional: prints the contents of a named hidden page
toc() function (Table Of Contents)
toc() returns all levels in TOC toc(x) returns only level x from TOC, ie. toc(1) toc(x,y) returns only x-y levels in TOC, ie. toc(2,3)
lastupdate() function
lastupdate(null,4) returns string with 4 hours time zone correction lastupdate("true") returns the lastupdate string without linebreak
A Template ExampleBelow, is an example that shows the cells of a table and where the functions can be placed.
Tip: Study the templates that come with the distribution before you start to design your own. top.jpg is stored in the variable $pth['folder']['templateimages']
In head: insert head().
In bodytag: insert onload()
|
Be aware: Template names and template folders must use lower case characters only, i.e all small letters!
Be aware: It is a legal reqirement to include the Powered by CMSimple link in your template source code - unless a licence has been purchased.
CMSimple layout template sites
Please see under references.
|