- Posts: 25
- Karma: 2
- Thank you received: 1
Custom Question Views not working
- Set <overwrite_question_views>true</overwrite_question_views> in config.xml of my own template
- Set 'allow_templates_to_overwrite_views' => 1 in application/config/config.php
- Also tried to set 'allow_templates_to_overwrite_views' => 1 in application/config/config_defaults.php
- Copied application/views/survey directory to upload/template/my-template/views/
Did I miss anything?
I'm running Version 2.56.1+161118
Also tried to set 'allow_templates_to_overwrite_views' => 1 in application/config/config_defaults.php
Never change config_defaults, but config.php:
'config'=>array ( // debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory // on your webspace. // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates 'debug'=>0, 'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2 'allow_templates_to_overwrite_views'=>1, )
rleuthold wrote: That is simple - if I change upload/template/my-template/views/survey/frontpage/enterToken.php (e.g. delete the jumbotron section), no change is visible. If I do the same in application/views/survey/frontpage/enterToken.php, the change is visible. Therefore I know that my custom view is not picked up.
Enter token is not a question view, I think you can't override it for now. I can add it if you want, so it will be possible in next release.
It will be available in next release. If you can't wait, just copy paste the file application/helpers/frontend_helper.php from the repository to your installation:
(be sure you're running the last version first)