Welcome to the LimeSurvey Community Forum

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

Force a theme for all surveys

  • bewi
  • bewi's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 11 months ago #183007 by bewi
Force a theme for all surveys was created by bewi
I'm required to enforce a theme for all surveys. And so this might be easy in storing the theme name while saving the survey. I want to handle it in a more flexible way.
As the theme may vary or be renamed I want a plugin config to get the theme name and ideally directly from database.

Is it possible to get a drop down of all theme names (+ blank) in the plugin config?

BTW: why does LS store the theme name in the survey record instead of an ID referencing the theme, so a theme rename is done only in the theme record.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #183020 by DenisChenu
Replied by DenisChenu on topic Force a theme for all surveys
You can force it in a plugin : manual.limesurvey.org/AfterFindSurvey

To get the «available» theme : inspiration : gitlab.com/SondagesPro/managament/respon...stAndManage.php#L479

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 topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose