This shows you the differences between two versions of the page.
en:public:developer:template_system:tags:parameters:analyzetagparams [2013/01/26 21:47] admin created |
en:public:developer:template_system:tags:parameters:analyzetagparams [2013/01/27 16:57] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== AnalyzeTagParams ===== | ===== AnalyzeTagParams ===== | ||
- | When we call a function like <#MyTag SetValue="something"> then sometime instead of "something" you | + | When we call a function like <#MyTag SetValue="something"> then sometime instead of "something" we |
want to have <#MyTag SetValue="<#MySomethingVar>"> and dependly of the function, the parameters (SetValue in our | want to have <#MyTag SetValue="<#MySomethingVar>"> and dependly of the function, the parameters (SetValue in our | ||
- | exemple) will be first analyzed (or not) before to call the function. this global parameter | + | exemple) will be first analyzed (or not) before to call the function. This global parameter |
permit to control this behavior | permit to control this behavior | ||
==== Values ==== | ==== Values ==== | ||
- | ^ Value ^ Description ^ | + | ^ Value ^ Description ^ |
- | | <html><span style="color:#008000">1</span></html> | Analyze the params before to call the function | | + | | <html><span style="color:#008000">* or 1</span></html> | Analyze all the params before to call the function | |
- | | <html><span style="color:#008000">0</span></html> | Don't Analyze any params before to call the function | | + | | <html><span style="color:#008000">-* or 0</span></html> | Forbid the function to analyze any params | |
+ | | <html><span style="color:#008000">FieldA;FieldB;-FieldC</span></html> | Analyze the parameter FieldA, FieldB before to call the function and forbid it to analyze the parameter FieldC | | ||
+ | | <html><span style="color:#008000">Result</span></html> | Analyze the result of a calling function (or var) before to pass it to any filter | | ||
+ | | <html><span style="color:#008000">-Result</span></html> | Forbid the Analyze of the result of a calling function (or var) before to pass it to any filter | | ||
==== Example ==== | ==== Example ==== | ||
Line 18: | Line 21: | ||
<#MyOtherVar setValue="123"> | <#MyOtherVar setValue="123"> | ||
- | <#MyVar setValue="<#MyOtherVar>" AnalyzeTagParams="0"> | + | <#MyVar setValue="<#MyOtherVar>" AnalyzeTagParams="-MyOtherVar"> |
<#MyOtherVar setValue="456"> | <#MyOtherVar setValue="456"> | ||
<#MyVar> | <#MyVar> | ||
- | <#MyVar setValue="<#MyOtherVar>" AnalyzeTagParams="1"> | + | <#MyVar setValue="<#MyOtherVar>" AnalyzeTagParams="*"> |
<#MyOtherVar setValue="789"> | <#MyOtherVar setValue="789"> | ||
<#MyVar> | <#MyVar> | ||
Line 46: | Line 49: | ||
</code> | </code> | ||
- |