Welcome to the LimeSurvey Community Forum

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

Missing template files (.twig) in file control window (Theme Editor)

  • QuoTil
  • QuoTil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago - 5 years 8 months ago #172572 by QuoTil
Hi folx,

using LS 3.

I'm wondering why not all template files (.twig) used by a specific "Screen" are showing up in file control window of the Theme Editor. E.g. "register_form.twig" is used by the "Register" screen but it is not showing up in the file control window.

Even if I copy the file manually to the respective directory the file gets used by LS correctly but it is not shown in the file control window what means that you can't edit it in the Theme Editor.

What is the underlying issue here (guessing its intended) and how can it be solved?

The actual purpose of my question is that I want to edit "register_form.twig".

Thank you very much!
Last edit: 5 years 8 months ago by QuoTil.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago #172574 by DenisChenu
It's in vanilla : github.com/LimeSurvey/LimeSurvey/blob/d1...illa/config.xml#L234

Maybe need to reset template ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: LouisGac, QuoTil
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago - 5 years 8 months ago #172577 by tpartner
If you register it in the template_editor --> screens --> register section of your config.xml file, you should see it in the editor when you select the "Registration" screen.




Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 8 months ago by tpartner.
The following user(s) said Thank You: LouisGac, QuoTil
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
5 years 8 months ago #172580 by LouisGac
TPartner is right.
BTw, you don't need to reset theme for theme editor configuration, it's always loaded from the XML
The topic has been locked.
  • QuoTil
  • QuoTil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #172581 by QuoTil
Very interesting! I'm using an custom extended fruity theme. I now understand that the config.xml is also inherited in this case from vanilla to fruity to fruity_extended. The respective xml-record was not in the config.xml of the vanilla theme at my end. I added the record and it works.
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
5 years 8 months ago #172583 by LouisGac
it also mean that you're not up to date ;)
please: update.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose