![]() |
WaterWare Reference & User Manual | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Document was last modified on: Tuesday, 18-May-10 11:18 CEST |
Object TEMPLATESThe display and editing of OBJECTS is controlled by TEMPLATES, simple HTML files wityh a few tag extensions;OBJECTS are shown with a standard HEADER part, including map, hypertext description and standard button mernu followed by an arbitrary HTML block. The HTML block is defined by the CLASS specific TEMPLATES. TEMPLATES are plain HTML files (and possible PHP extension (include files) for more complex interactive functionality). The TEMPLATE files can be edited by the user (caveat emptor) to modifiy the display, but also to ADD, REMOVE, or MODIFY the attributes of an object, which are defined in the systems Knowledge Base as DESCRIPTORS. In the TEMPLATE, DESCRIPTOR are referenced and displayed by a set of simple "tags" that are parsed when the OBJECT is instantiated through the TEMPLATE from the data base. The TEMPLATE PARSER also supports simple calculations.
The TEMPLATE files are located in /var/www/html/templates and have descriptive names that correspond (closely) to the respective OBJECT CLASS' name. The files names are defined in the data base TABLE RBO.CLASS: mysql> select ID,DESCRIPTION,TEMPLATE from RBO.CLASS where TYPE='RBO' order by 2;
|
