Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Theme development per survey

Theme development per survey 5 years 8 months ago #58967

  • tammo
  • tammo's Avatar
  • Offline
  • Premium Lime
  • Posts: 372
  • Thank you received: 63
  • Karma: 17
When developing surveys and their themes, I always try to keep the code clean. Would it be an idea to implement the possibility to always use the same theme, but per survey ask for an extra CSS that implements extra's for that theme?

Example: you are working on survey xxxxx with theme yyyyy. When showing this survey it uses all CSS-files from theme yyyyy plus an extra stylesheet called xxxxx.css. Everything that is special for survey xxxxx goes in xxxxx.css

Another approach could be:
The body tag for survey xxxxx has an extra class: .surveyxxxxx This extra class can be used to make things special for surveyxxxxx
Same can be done for groups: body tag for groupdddddd gets another class: .groupddddd

Any thoughts?

Tammo ter Hark
Tools for Research
Haarlem/Amsterdam, The Netherlands
The administrator has disabled public write access.

Theme development per survey 5 years 8 months ago #59002

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9566
  • Thank you received: 1374
  • Karma: 390
Yep,

I think one time we think of a /upload/surveys/XXXX/template.css and /upload/surveys/XXXXX/template.js

But, now, just the time to do it ;)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.

Theme development per survey 5 years 8 months ago #59083

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6027
  • Thank you received: 373
  • Karma: 260
In general this is a nice idea. You can add this as a feature request at our feature tracker . Please describe your idea as detailed as possible and try to outline a suitable solution/implementation as well.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.
Time to create page: 0.337 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form