INCLUDE


The INCLUDE tag is a very useful tag to keep the HTML files unclustered and to guarantee the same appearance of all pages.

General information about the basic structure of all HTML files, such as background color and background image in the BODY tag, as well as the structure of titles and footers can be defined in special small files.They can then be included into all pages via the INCLUDE tag instead of being repeated in every single file. Many of the actions to be executed through Chilli scripts are very similar in quite a number of pages. Therefore, they also can be put into separate files, which will then be included in many other files through the INCLUDE tag.

This considerably reduces the work required to set up the pages as well as the file sizes. It furthermore facilitates the task of making changes to the basic appearance of the HTML files should the need occur. The INCLUDE tag will be replaced in its entirety by the contents of the included file.

Start Tag

required

End Tag

forbidden

Syntax

<INCLUDE htmlfile='file name' [condition='condition value'] [onceonly]>

Mandatory Parameters

The htmlfile parameter defines the name and path of the file with which to replace the INCLUDE tag. The file path is relative to the path of the current file into which the new file is to be included.

Optional Additional Parameters

A value which is evaluated as an expression and determines if the file include is to be executed or not.

The onceonly parameter is used to avoid the multiple loading of the same data, which causes an error and stops the execution of a script.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Client Management 12.2