Force a theme for all surveys

More
1 week 6 days 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.

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 week 6 days ago #183020 by DenisChenu
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!