View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
13521 | Bug reports | Survey editing | public | 2018-03-22 12:19 | 2018-05-22 15:05 |
Reporter | tpartner | Assigned To | |||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.5.x | ||||
Target Version | 3.5.x | Fixed in Version | 3.7.x | ||
Summary | 13521: Access question and survey variables/data from within custom question theme Twig files | ||||
Description | Hi Louis, some time ago on IRC you mentioned that you could implement the ability to access all of the values of the aData array in Twig files with {{ dump(aData) }}. I would find it helpful for development to be able to see what is available in that array. Is it still possible to implement that? Additionally, is it possible to access higher level survey information like language, ID, etc.? (something like EM placeholders) Thanks. | ||||
Tags | No tags attached. | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 3.5.1 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | N/A | ||||
Database type & version | mysqlnd 5.0.12-dev | ||||
Server OS (if known) | Windows 10 | ||||
Webserver software & version (if known) | Apache/2.4.27 (Win32) OpenSSL/1.0.2l PHP/7.1.9 | ||||
PHP Version | 7.1.9 | ||||
(15:53:13) tpartner: [14:58] <tpartner> 2) Is there documentation on what twig vars are available in the custom question theme files? For example, in browserdetect, I see {{name}}, {{basename}}, etc. but don't know what else is available? (I don't see any reference to an array of vars that can be dumped like in the survey theme files) |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=27170 |
|
aData and surveyInfo variables are accessible from question type twig files |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2018-03-22 12:19 | tpartner | New Issue | |
2018-03-22 12:19 | tpartner | Status | new => assigned |
2018-03-22 12:19 | tpartner | Assigned To | => LouisGac |
2018-05-15 15:55 |
|
Note Added: 47593 | |
2018-05-15 15:56 |
|
Assigned To | LouisGac => dominikvitt |
2018-05-17 14:52 | Changeset attached | => LimeSurvey master ec2d45c7 | |
2018-05-17 14:52 | guest | Note Added: 47664 | |
2018-05-17 14:52 | guest | Resolution | open => fixed |
2018-05-17 15:59 |
|
Status | assigned => resolved |
2018-05-17 15:59 |
|
Note Added: 47665 | |
2018-05-22 15:05 | ollehar | Status | resolved => closed |
2018-05-22 15:05 | ollehar | Fixed in Version | => 3.7.x |
2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |