|  WBCE CMS Home | Imprint | Privacy | Sitemap | 

Templates

Templates define the frontend appearance of a page. It is also possible for the template creator to prepare the template so that the view in the backend WYSIWYG editor is similar in appearance to the frontend display. You can install as many templates as you like, making it possible to set a different template for each page, if you so desired.

Attention! Security Advice! Please make sure that only trustworthy users have access to this area. Bad minded users could abuse the upload of templates to load malicious scripts onto the server!

You can find many ready-to-use templates in the template search of wbce.at, or create a template yourself - which is quite easy.  Basically you just replace the static contents of an HTML page with some easy lines of PHP.

The simplest way to learn how a template is built is by looking into the source code of an existing template. You can have a look at the source code of the very basic template "Out of the blue", in which I have placed lots of comments to explain the template code.

Install Template

Templates are installed from zip files (as well as modules). A template zip file contains the template file itself, called index.php, a file with basic settings for the template called info.php and all other files which are needed by the template (e.g. CSS files, javascripts, images).

You simply upload the zip file which you downloaded or created by yourself and click on "Install". You do not have to unpack the zip locally.

If you want to use the newly installed template...

  • ...as the default frontend template for all the pages of your site, go to Settings > Default Settings and select it from the "Template" dialogue.
  • ...on a few select pages, change the template in the Page Settings of those pages.
  • ...on a bunch of pages, consider installing the multipage settings tool, which can apply several  changes to multiple pages in a single run (but be careful, it's a very powerful tool).

Templates can be updated; if the template provider offers a new version and has increased the version number of the template, this dialogue is also used to update an existing template. But be careful, if you have made changes to the template or any template file, they will be overwritten during the update!

Uninstall Template

Similar to the de-installation of modules, with the same dangers and limitations.

  • You can only uninstall a template which is no longer in use and which is not set as the default template.
  • If you uninstall a template, it will be physically removed from the server and the template itself and all changes you might have applied to it are definitively lost.
Template Details

The template provider can (but does not have to) give some additional information about a template, e.g., which block appears where, which blocks are mandantory and so on. Furthermore, you might find some information about the license terms of the template.