Welcome, Guest
Username: Password: Remember me

TOPIC: Theme development per survey

Theme development per survey 3 years 4 months ago #58967

  • tammo
  • tammo's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Thank you received: 2
  • Karma: 1
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?
The administrator has disabled public write access.

Re: Theme development per survey 3 years 4 months ago #59002

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6228
  • Thank you received: 793
  • Karma: 238
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 ;)
The administrator has disabled public write access.

Re: Theme development per survey 3 years 3 months ago #59083

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5301
  • Thank you received: 291
  • Karma: 247
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.114 seconds
Donation Image