Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Override question_types twig in upload folder for Print Screen

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 days 11 hours ago #268873 by DenisChenu
No issue for me : OK with debug=2 or debug=0.
 

Send my test theme and survey

No idea

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • cheeseburger
  • cheeseburger's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 days 10 hours ago #268882 by cheeseburger
Thank you for spending the time to do that test and then send the exports. After reviewing them, I believe I see the difference. Please let me know if I am seeing it correctly: 

In your views/subviews/printanswers/question_types/template_numeric-multi.twig file I can see where you made the edit "I update here". 

When you made the edit, did you make it to the core file (the original primary singular file that is in its original location and NOT in the uploads folder and not in a TMP folder)? 

For example, this is where the core file is located in its original location after installing LimeSurvey: 
/efs/www/html/limesurvey/themes/survey/vanilla/views/subviews/printanswers/question_types/template_numeric-multi.twig

If this is where you make your edits that you can actually see in the final survey, that would make sense to us and we are likely to also have a successful result. 

However, in order to not have to worry about upgrades overwriting "core files", we found that we were able to place items in the UPLOAD directory and it would override the core files - just like it does when you use the GUI (Limesurvey Theme Editor) to modify an existing twig. You click to copy and save and it makes a duplicate inside of the uploads folder which then makes a copy in the tmp folder. 

We USED to be able to manually place files such as template_numeric-multi.twig into the uploads folder and it would behave like the files we can access through the theme editor even though you couldn't access them there. If we placed them in the uploads folder, they would be read in place of the actual file. That behavior has changed and we were wondering if it was still possible in order to not touch "the core file".

Thanks again!

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
2 days 17 hours ago #268895 by DenisChenu

In your views/subviews/printanswers/question_types/template_numeric-multi.twig file I can see where you made the edit "I update here". 

When you made the edit, did you make it to the core file (the original primary singular file that is in its original location and NOT in the uploads folder and not in a TMP folder)?
 
This file is at /media/shnoulle/data/webdev/noplugin/upload/themes/survey/vanilla_checkprint/views/subviews/printanswers/question_types directory

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose