Welcome to the LimeSurvey Community Forum

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

Save template as a core template

  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
6 years 11 months ago #154951 by blocka
Save template as a core template was created by blocka
After I've customized a template, I'd like to add it to /templates/ so that people can copy it to modify themselves (and can't delete it). But when I place my template in the /templates directory, it doesn't appear in the template editor.

If I place it in the /upload/templates/ folder of course it does, but then people who have permissions to manage templates can delete it.

I'm using the latest version of LS 2.65.0 (170502)

Any advice?
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
6 years 11 months ago - 6 years 11 months ago #154958 by LouisGac
Replied by LouisGac on topic Save template as a core template
For now you should hack the core code to add your template to standard templates:
github.com/LimeSurvey/LimeSurvey/blob/ma...ls/Template.php#L280

We're about to do a new release this week. I will modify the code so the list of standard templates will come from the configuration file (so you can modify it without hacking the code).
Last edit: 6 years 11 months ago by LouisGac.
The topic has been locked.
  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
6 years 11 months ago #154986 by blocka
Replied by blocka on topic Save template as a core template
Excellent! Thanks for including that in the next release :-)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose