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 break line instead.

<#menu_items[5].title default="<br>">

1. 5-th item of the menu has title “Special promotions”. Output:

Special promotions

2. 5-th item of the menu hasn't title. Output:

<br>
en/public/developer/template_system/tags/parameters/default.1354003064.txt.gz · Last modified: 2012/11/27 11:57 by igor