User Tools

Site Tools


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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:public:developer:template_system:tags:parameters:default [2012/11/26 15:12]
igor created
en:public:developer:template_system:tags:parameters:default [2013/01/27 17:17] (current)
admin
Line 1: Line 1:
-Parameter "default" specifies the value that will be returning when we call some variable without explicit declaration.+====== Default ======
  
-  <#Var name="Price" default="0"> +Parameter "defaultspecifies the default value that will be returning if the called function (or var)  
-  // do something, we suggest Price was not modified here +return and **empty string** or a **null value**.
-  The total price: <#Price>+
  
-Output:+**NOTE:** By default the content of the parameter "default" will be parsed (all <#..> tags will be evaluated)  
 +before to apply this filter. You can control this behavior throught the parameter  
 +[[en:public:developer:template_system:tags:parameters:AnalyzeTagParams]]
  
-  The total price0+==== Example ==== 
 + 
 +<code> 
 + 
 +  <#page_title default="ArKadia"> 
 + 
 +</code> 
 +   
 +**Case 1.** Page_title is "Special promotions". Output: 
 + 
 +<code> 
 +  Special promotions 
 +</code> 
 +   
 +**Case 2.** Page_title is empty. Output: 
 + 
 +<code> 
 +  ArKadia 
 +</code>  
en/public/developer/template_system/tags/parameters/default.1353928338.txt.gz · Last modified: 2012/11/26 15:12 by igor