Your template will be recognized automatically by system. But it has to know, this file is a template. Your template need a name.
There is couple of Tags, which have to be placed on your template. The most important part of template is Content Area. In most cases, we will define also Dynamic Menu tags. If there are any modules to be displayed, like News, Vote Poll, we will define them too.
This is really simple, just place {%content%} tag on your template. When website is displayed, it will be replaced with real content.
Dynamic Menu is the most complicated part of your template, but don't worry - this doesn't mean, it's difficult. You can have one menu or more than one menu define don your template. If your menu ID is 1, menu definition will be:
<ul>
{%menu_start=1%}<li>
<a href="{%menu_href%}">{%menu_display%}</a>
</li>{%menu_end=1%}
</ul>
<table><tr>
{%menu_start=1%}<td>
<a href="{%menu_href%}">{%menu_display%}</a>
</td>{%menu_end=1%}
</tr></table>
| Home | About | Contact | etc |
<table>
{%menu_start=1%}<tr><td>
<a href="{%menu_href%}">{%menu_display%}</a>
</td></tr>{%menu_end=1%}
</table>
| Home |
| About |
| Contact |
| etc |
There is a couple of "extra menu tags" - if you need more functionality from your menu: {%count%}, {%menu_ActiveClassName%}, {%menu_ActiveClass%}, {%menu_ActiveClassSpaceName%}
First, {%count%} is simply counting items, and displaying a number, example first subpage, will display "1" , second will display "2", etc.
Why should you use it? You don't have to, but sometimes there is such a need. Example, if you need each menu item to be displayed with different style:
<style>
.item_1 { background-color: white; }
.item_1 { background-color: black; }
</style>
<ul>
{%menu_start=1%}<li class="item_{%count%}">
<a href="{%menu_href%}">{%menu_display%}</a>
</li>{%menu_end=1%}
</ul>
Sometimes, you may need to have different style for "active" menu items, example if visitor is on Homepage, Homepage menu item will show him, he is on this page now. You can use 3 additional tags, which were listed above: {%menu_ActiveClassName%}, {%menu_ActiveClass%}, {%menu_ActiveClassSpaceName%}
Dynamic menu will create "item_active" class for active item. You can use it in few ways:
| Tag | Result | example usage | |
| 1. | {%menu_ActiveClass%} | class="item_active" | <a href="{%menu_href%}"{%menu_ActiveClass%}> {%menu_display%} </a> |
| 2. | {%menu_ActiveClassName%} | item_active | <a href="{%menu_href%}" class="{%menu_ActiveClassName%}"> {%menu_display%} </a> |
| 3. | {%menu_ActiveClassSpaceName%} | item_active (with space) | <a href="{%menu_href%}" class="someClass{%menu_ActiveClassSpaceName%}" > {%menu_display%} </a> |
The most popular use is option 1 and option 3, you can use option 3 if you already have some class name attached to menu item, but we recommend not setting any class for menu item, and use Option 1, then just set some class with attributes in your CSS file
<style>
.item_active {
text-decoration: underline;
}
</style>
There are 3 main Website Tags, which displaying Website Name, Website Slogan and Website Footer. These 3 parameters can be modified at anytome from Admin Area, but they have to be set on the template first.
| Tag | Display Result | |
| 1. | {%WebsiteName%} | Website Name, example Your Company name. You can manage it from Admin Area > Config |
| 2. | {%WebsiteSlogan%} | Website Slogan. Can be managed from Config too |
| 3. | {%WebsiteFooter%} | Website Footer. |
This is very important part of creating a template, and you shouldn't ignore it. In Admin Area there is Full Meta Tag management, but to set any meta tags from Admin Area, template has to be designed correctly first.
<html>
<head>
<meta http-equiv="content-type" content="{%MetaCharset%}" />
<meta name="description" content="{%MetaDescription%}" />
<meta name="keywords" content="{%MetaKeywords%}" />
<title>{%MetaTitle%}</title>
</head>
<body>
Some Body Content
</body>
</html>
Sometimes, you may want to display News or Vote Poll on your template. Just place {%news%} or {%vote%} tag on it.
If you plan to build your own template, we strongly recommend to use our current templates as an example. You can see how our dynamic menus are built, etc.
You need to upload the template to your main folder. You will need FTP connection and some FTP software. We recommend Total Commander, it's a shareware software, but there is also many free solutions available.
To build a HTML template, you will need some HTML Editor. There is a lot of HTML editors available in Internet. You can use Free or Commercial software.
Free Editors:
Commercial Editors
Please contact us.