Declaring and using named arguments.

Release 1.0 - ...

You can use the named argument syntax when calling translations::

Smartsite SXML CopyCode image Copy Code
{mytra(1, 2, namedarg1='Foo')}

The translation.arg(name) syntax can be used to retrieve the argument values, just like with arguments declared in the translation name.

Note

To avoid ambiguity, argument names present in the signature (=translation code field) can not be used as named parameters, except when no unnamed arguments are passed:

Will throw an error:

Smartsite SXML CopyCode image Copy Code
{mytra(1, arg1='Foo')}

Is ok:

Smartsite SXML CopyCode image Copy Code
{mytra(arg1='Foo')}