facebook: the meeting point ebay: the market place CMSimple: your home at the www

CMSimple - Documentation

information  documentation  downloads  forum
You are here:   Home > Templates > Template Designers > Important Variables
German CMSimple Website English Danish

Important Variables

CMSimple allows you to output the contents of system variables used in template.htm, such as language or path variables.

Language variables

All available language variables can be found in the corresponding language file.
For the german language that would be in the file de.php:

./cmsimple/languages/de.php

The following example shows how you can output a language variable inside template.htm:

<?php echo $tx['locator']['text']; ?>

Output: "Sie sind hier: "

Example of how to use:

<b><?php echo $tx['locator']['text']; ?>  </b>
<?php echo locator();?>

In the language file there are special variables that are template bound:

$tx['template']['text1']
...
$tx['template']['text9']

Variables 1-3 are system reserved, 4-9 are free to use.

Path variables

The most important path variables:


  • $pth['folder']['templates']

Output: path to the root templates folder /templates/, with ending trailing slash.


  • $pth['folder']['template']

Output: path to the folder of the template, with ending trailing slash.


  • $pth['folder']['templateimages']

Output: path to the templates images folder /images/, with ending trailing slash.


Example of how to use:

<a href="./">
<img src="<?php echo $pth['folder']['templateimages'];?>logo.jpg" class="logo" alt="Logo">
</a>

Other variables

Other interesting system variables that are available for use in template.htm:


  • $sl

Output: the language code.
For german the output would be: "de"

Example of how to use:

<html lang="<?php echo $sl;?>">

Result: <html lang="de">


  • $sn

Output: the path from the domain root to the CMSimple root, with ending trailing slash.

« prev top next »

CMSimple News

CMSimple is ready for php 7.3
System Requirements »

CMSimple 4.8 published

2019-10-14

CMSimple 4.8 with a new Backup Manager and new language files is available for download.

An "easy to install" update CMSimple 4.0 => 4.8 also is available.

Download Area »

NEW from 4.7.6: Admin Login

Since CMSimple 4.7.6, you can lock the permission to configure CMSimple and plugins for authors, and set up an admin login. The admin is allowed to do everything.

more information »

Services

Just to avoid misunderstandings: The firms listed below are no hotlines for free. Therefor the forum » is available.


ge-webdesign.de offers:

ge-webdesign.de

Templates

Responsive templates are suitable for all visual output devices, from smartphones up to HD screen.

Test the responsive templates of ge-webdesign.de:

Demos & Downloads »

Plugins

With plugins you can extend the functionality of CMSimple. There are Blogs, Comments, Photo Galleries, MultiMedia, MembersArea and much more.

Here you can find demos for most of the available plugins:

Demos & Downloads »

Sponsors Area

This is the place for banners and links to sponsors of CMSimple or any kind of advertising.

Become a CMSimple Sponsor »

You also can support CMSimple by a PayPal donation: