Format modifiers
Syntax:
{bracket|modifier_name(param)}
Modifier content |
example |
Explanation |
|
without |
with modifier |
||
{city|nospecialchars} |
Lądek-Zdrój |
Ladek-Zdroj |
all special characters will be replaced with their equivalents |
{mail|lower} |
JoHn.doE@Ipresso.COM |
john.doe@ipresso.com |
all characters are changed to lowercase |
{region|upper} |
Silesia |
SILESIA |
all characters are changed to uppercase |
{lastName|ucfirst} |
kowalski |
Kowalski |
changes the first letter to capital |
{contactAtributes_12|date_format( Y-m-d )} |
12.03.2021 |
2021-03-13 |
displays the date assigned in an attribute in the specified format (e.g. Y-m-d) |
{contactAtributes_100|abs} |
-14 |
14 |
absolute value for numerical data |
Data modifiers
Syntax:
{bracket@modifier_name(param1, param2)}
Modifier content |
Explanation |
||
{subscription@item(package_id)} |
displays the specific attribute parameter, in this case only the data from the array row described as package_id |
||
{contactAtributes_12@first} |
returns the first element of an array |
||
{contactAtributes_12@last} |
returns the last element of an array |
||
{contactAtributes_12@random} |
returns the first element of an array |
||
{contactAtributes_12@implode ( - )} |
combines all elements into one string separating them with "-" |
||
{contactAtributes_12@count} |
returns the number of elements in an array |
Comments
0 comments
Please sign in to leave a comment.