User Tools

Site Tools


en:public:developer:template_system:tags:parameters:default

This is an old revision of the document!


Default

Parameter “default” specifies the default value that will be returning if the called functions return nothing or called variable contains nothing.

Example

Assuming we would to print the menu. If some item of the menu hasn't any title we want to put “ArKadia” instead.

<#page_title default="ArKadia">

Case 1. Page_title is “Special promotions”. Output:

Special promotions

Case 2. Page_title is empty. Output:

ArKadia
en/public/developer/template_system/tags/parameters/default.1354270569.txt.gz · Last modified: 2012/11/30 14:16 by igor