How to make AIM rendering use the Preview Logic field in translations

Release 1.3 - ...

The Preview Logic field is the ideal place to test and debug translations. It provides a way to call your translation in a controlled, simplified context.

When AIM rendering takes place, translations are normally rendered as an empty viper call:

Smartsite SXML CopyCode image Copy Code
{your_tra_name()}

From 1.3, you can now also make AIM rendering use the Preview Logic field. To do this, simply place a call to aim.usepreviewlogic() in your translation's Preview Logic field:

Smartsite SXML CopyCode image Copy Code
{aim.usepreviewlogic()}

advantage of using this is that your translation will be called using your given parameters. Translations may otherwise fail simply because translation.arg() calls don't use defaults, resulting in errors.

Apart from preventing errors, the main advantage is that autonomous AIM references will get added.