Welcome to the LimeSurvey Community Forum

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

Possible to override view in plugin?

More
2 years 5 months ago #209727 by jackrabbithanna
I'm porting lots of core hacks to plugins during an upgrade from an old 2.x to 3.x (or maybe 4.x) system.

Is is possible to override a view in a plugin?

For example, this file:
application/views/admin/survey/QuestionGroups/editGroup_view.php

I need to add one form element, Parent Group, so that question groups can have an hierarchical structure.

What options are there for using a completely different view php file, loaded from a plugin?

Is there an event I can subscribe to do to this?

I was wondering if this would be possible with manual.limesurvey.org/GetPluginTwigPath

Do you have any interest in having a feature like this in Limesurvey, where I could contribute a PR ?

The parent group id is stored in a parent_gid column in the groups table.

Thanks in advance
The topic has been locked.
More
2 years 5 months ago #209728 by DenisChenu
It's a view not a twig : then no way to override.

I'm unsure, but maybe there are a project to move Admin GUI to twig too, must ask to LimeSurvey GMBH team …

> Do you have any interest in having a feature like this in Limesurvey, where I could contribute a PR ?

I'm totally intersted personaly , but start by a feature request. Maybe you can ask too on … … discord : forums.limesurvey.org/forum/news/122416-...limesurvey-community

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