Welcome to the LimeSurvey Community Forum

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

Force a theme for all surveys

More
6 years 4 months ago #183007 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.
More
6 years 4 months ago #183020 by DenisChenu
You can force it in a plugin : www.limesurvey.org/manual/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 support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose