View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
12382Feature requestsDocumentationpublic2018-05-30 11:04
ReporterDeusdeorum Assigned ToLouisGac 
PrioritynoneSeverityfeature 
Status closedResolutionfixed 
Summary12382: Description on how to use twig / description table for variabels.
Description

I was thinking of a conversion table when the twig version goes live. If we look in a twig template (https://github.com/LimeSurvey/LimeSurvey/blob/develop/templates/default/views/layout_survey_list.twig) there's a lot of variables and expressions that might be confusing for a layman's eye.

I do understand that not everything can be covered in such a table but something simple like a wiki page should be enough?
And instructions on how to grep the right things if one is looking for something other?

Example wiki: https://manual.limesurvey.org/Twig-table

There might obviously be better ways!

TagsNo tags attached.
Bug heat4
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

LouisGac

LouisGac

2017-05-11 11:51

developer   ~43585

Last edited: 2017-05-11 11:51

if it's about giving infos about the LS variables or the LS/Php functions available via twig: great.

For twig syntax and operators:
https://twig.sensiolabs.org/

Deusdeorum

Deusdeorum

2017-05-11 11:57

reporter   ~43586

true, people can google their way for twig syntax! So only LS variables

LouisGac

LouisGac

2017-05-11 12:01

developer   ~43587

Last edited: 2017-05-11 12:02

and LS/PHP functions/filters/Objects methods/properties available in the sandbox.

See:
https://github.com/LimeSurvey/LimeSurvey/blob/develop/application/config/internal.php#L207-L248

and:
https://github.com/LimeSurvey/LimeSurvey/blob/develop/application/core/LS_Twig_Extension.php

Issue History

Date Modified Username Field Change
2017-05-11 11:39 Deusdeorum New Issue
2017-05-11 11:39 Deusdeorum Status new => assigned
2017-05-11 11:39 Deusdeorum Assigned To => LouisGac
2017-05-11 11:51 LouisGac Note Added: 43585
2017-05-11 11:51 LouisGac Note Edited: 43585
2017-05-11 11:51 LouisGac Note Edited: 43585
2017-05-11 11:57 Deusdeorum Note Added: 43586
2017-05-11 12:01 LouisGac Note Added: 43587
2017-05-11 12:02 LouisGac Note Edited: 43587
2018-05-30 11:04 Deusdeorum Status assigned => closed
2018-05-30 11:04 Deusdeorum Resolution open => fixed