Function Tokens provide you the ability to execute certain XMod Pro-supplied functions. Currently there is only one function: Join. As other functions are added, they will be added to this topic.
[[Join()]]: Then Join function allows you to merge text with field values and other token values. It can be used in plain text, but it's primary purpose is for use within tag attributes.
The Join function's syntax looks like
[[Join(Input, Value1, Value2, ...)]]
As with all tokens, it starts with two open brackets [[
. These are followed by the function name (Join) and an opening parenthesis (
. Next comes a list of parameters to the function, separated by commas, and a closing parenthesis )
. Finally the function and ends with two closing brackets ]]
. The parameters are listed below:
[[Join("Hello {0}", "World!")]]
[[Join("Hello, {0}", [[FirstName]])]]
[[Join("{0} plus {1} equals {2}", "1", "2", "3")]]
[[Join("{1} plus {0} equals {2}}, "1", "2", "3")]]
[[Join("alert(""Hello {0}"");return false;", [[FirstName]])]]
[[Join("alert(""The Module ID is: {0}"");return false;", [[Module:ID]])]]
]]
)<img src="[[Employees_list@PictureUrl]]" align="left" /> <strong>[[Employees_list@UserFullName]]</strong>
<xmod:detailbutton text=
'
[[Employees_list@UserFullName]]
'
/>
<xmod:detailbutton text=
"
[[Employees_list@UserFullName]]
"
/>
<
xmod:template>
...
<ItemTemplate>
[[Localize:Company]] [[CompanyName]] <br />
[[Localize:Address]] [[Address]]
<xmod:DeleteButton Text='[[Join("Delete {0}", [[CompanyName]])]]'
OnClientClick='[[Join("return confirm(""Really Delete {0}?"")", [[CompanyName]])]]'>
...
</xmod:DeeleteButton>
</ItemTemplate>
...
</xmod:template>