Help

11         Appendixes

11.1   In-tag Dictionary

Variable Tags

Format:            <%[tag_name]:[tag_value]%>

Description:     Variable tags will accept any value after the ‘:’ and try to process it.

 

<%language: %>

Description:     Prints any language variable to the screen. If the variable is not defined, prints a blank. The tag will read language variables from language.php in the current language set.

Valid values:    Tag_value can be any variable (without the $) from language.php in the current language set. Invalid value will not affect the system.

Scope:              Anywhere in the system

Result:             language text or blank

Processing:      Short

Example:         <%language:lu_welcome%> Will display “Welcome”, if the default English language set is used.

 

 

<%include: %>

Description:     Includes a template file. The file will be included as is and in all cases – no conditions are available for this tag. It has built-in prevention from getting into a never-ending loop if you include the template itself.

Valid values:    Any template in the current theme. Use the exact file name without .tpl extension. Invalid value will display error message “file not found [file name]” from the current language file.

Scope:              Anywhere, but keep in mind that it will insert resulting HTML from the target template and account for it.

Result:             processed template or text error

Processing:      Short

Example:         <%include:header%> Will include the HTML code from header.tpl

 

 

<%drop_results: %>

Description:     Displays a choice of the number of results to display. Should be used to restrict the visitor on the number of links displayed per page. Useful on slow servers to avoid long download time.

Valid value:     Tag_value can be any positive integer (Arabic) or “all” to display all results. Note that invalid value will cause system errors.

Scope:              Within the HTML <Select> tag in sort_cats.tpl and sort_links.tpl

Result:             Extra choice in the drop down for each tag. System errors if wrong value.

Processing:      Short

Example:         <%drop_results:5%> Will display 5 in the drop down menu.

 

<%nav: %>

Description:     By default, it will provide a link to the template specified in the tag_value. Similar to <%include: %>, however it will not process the template. There are special cases. Returns

Valid value:     Any template from the current theme set. Use the exact file name without .tpl extension. There are special values that will still load the appropriate templates, but they will also do some required processing:

                                    add_link

                                    link

                                    registration

                                    add_review

            review

These templates and several others cannot be renamed.

Scope:              Anywhere in the system.

Result:             relative URL to be used within HTML <a> tag

Processing:      Short/Medium

Example:         <A href="<%nav:registration%>"> Click here to register </a> Will display a proper link to the registration page