ContentsContact: info@friendlyGIS.com Copyright© friendlyGIS ® GmbH 2000-2010 Last update: January 1st, 2011 |
Tayloring the HTML templatesTayloring the HTML templatesPreliminariesTayloring the HTML templates is straightforward. However, it is necessary to know some details of how to handle HTML files. We suggest using a simple HTML editor like HTML Kit, or a text editor. Wysiwyg HTML Editors tend to produce a lot of junk, however, you may try for your own. SW-Lookup®'s internal working is based on a simple homepage structure which resides in the dispatcher's home directory. If accessed via the dispatcher, this directory serves as the root directory. If you access it via the Windows explorer or a similar UNIX or LINUX tool, this isn't the root directory. This leads to the problem of not finding the correct links, e. g. to the images stored in the "images" directory, while editing the templates. When working with Windows, it is possible to "map" any directory to a virtual drive letter, which is valid only for the current session. To achieve this, please do the following:
After some Bill-Gates-memorial seconds you will find the drive in your explorer. Then, edit the files on the base of this new virtual drive. You can also edit the files without these precautions, but the images will not be found during editing. What do we need to taylor?SW-Lookup® consists of a homepage, which resides below the dispatcher homedirectory and has the following components:
For additional languages, there may be more subdirectories named after the Smallworld® language codes. The displayed pages during a SW-Lookup® session mostly come from so called HTML templates, which reside in the "templates" subdirectory. These are simple HTML pages, which contain variables which get filled with the data from SW-Lookup®. Before you get started with modifying the templates, you should first try SW-Lookup® to ensure that the system is installed correctly. Then, you may taylor these templates as needed, and you can adjust the layout to your own needs and wishes. If you need help with tayloring, please contact friendlyGIS ® for assistance. You find templates for the following steps in the "templates" directory:
In detail, these are the following files (normally, you need to only adjust the files for the language you are using)
How to do the tayloringIn each template, some variables are included, which are replaced by SW-Lookup® These variables begin and end with a double dollar sign to allow SW-Lookup® to find it. SW-Lookup® uses a very efficient mechanism to generate the pages after the template has been loaded. As a drawback, the usage of the variables also for image size leads to the images not being displayed during template design. However, since HTML creates the page layout dynamically, this seems to be acceptable. The templates which are delivered already hold all necessary variables. To adjust the templates, you will most often simply change colours or replace the SW-Lookup® logos by your own company logos. Simpy try to change e. g. the colour values (e.g. bgcolor="#xxxxxx") and look at the effect. You may also create a file with a WYSIWYG-HTML-editor and copy colour values etc. to the template (in source code mode). Please note that the templates are only loaded if you restart the dispatcher! |