Actions

Twig-table

From LimeSurvey Manual

Revision as of 11:38, 11 May 2017 by Deusdeorum (talk | contribs) (Created page with "=Twig conversion table= Twig uses variables and expressions to render templates. =Variables= {| class="wikitable" !Twig code!!Explanation |- |<nowiki>{{ surveylanguage }}</no...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Twig conversion table

Twig uses variables and expressions to render templates.

Variables

Twig code Explanation
{{ surveylanguage }} requests the language of the specific survey.

Expressions

Twig code Explanation
{% if count(aSurveyInfo.aLoadForm.aErrors) > 0 %} capturing errors {% endif %} check for errors, has to be handled within the if.
{% for item in items %} {{ item }} {% endfor %} looping through sequences.