View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 13889 | Feature requests | Plugins | public | 2018-07-20 16:35 | 2018-07-21 10:45 |
| Reporter | DenisChenu | Assigned To | |||
| Priority | none | Severity | feature | ||
| Status | new | Resolution | open | ||
| Summary | 13889: Allow plugin to extend twig file | ||||
| Description | With beforeCloseHtml event : we can add html just before body is closed : OK But currently : there are no way to extend twig file (or add HTML generated with twig at end) | ||||
| Additional Information | I think renderPartial allow to use twig file : but it's broke https://github.com/LimeSurvey/LimeSurvey/commit/46c9f532ecc8cbb0bd5467b42128773d4de25bd3
| ||||
| Tags | No tags attached. | ||||
| Bug heat | 2 | ||||
| Story point estimate | |||||
| Users affected % | |||||
| related to | 13702 | closed | DenisChenu | Bug reports | beforeCloseHtml event removed |
|
With beforeCloseHtml and Yii::app()->twigRenderer->renderPartial : [Fri Jul 20 17:40:46 2018] [error] [client 82.233.193.172] PHP Fatal error: Cannot destroy active lambda function in ./LimeSurvey/application/third_party/Twig/Template.php on line 415, referer: ./LimeSurvey/index.php/admin/survey/sa/view/surveyid/374886 Solution : move beforeCloseHtml in twig ? |
|
|
I need to look https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/LSETwigViewRenderer.php#L415 and make a demo survey for all of this … |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2018-07-20 16:35 | DenisChenu | New Issue | |
| 2018-07-20 16:35 | DenisChenu | Relationship added | related to 13702 |
| 2018-07-20 17:41 | DenisChenu | Note Added: 48544 | |
| 2018-07-20 17:51 | DenisChenu | Note Edited: 48544 | |
| 2018-07-21 10:45 | DenisChenu | Note Added: 48546 |