View Issue Details

IDProjectCategoryView StatusLast Update
14603Feature requests[All Projects] Theme editorpublic2019-03-14 18:33
ReporterDenisChenuAssigned Todominikvitt 
PrioritynoneSeverityfeature 
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version4.0.0dev 
Summary14603: Add a way to add array of options in config.xml (or elsewhere)
Description

See https://github.com/LimeSurvey/LimeSurvey/commit/5b974d2557f5b8ecf05d789effbda81b3afdce4a#diff-2d0efa16677c9fc32f5c1a28075e895aR140 : this is related to theme (specific theme) not to core.
See https://gitlab.com/SondagesPro/SurveyThemes/skelvanilla/blob/master/config.xml#L75 for another way to do it (i just need it , then i find a way ;) )

This 2 part muts be moved to a clean config.xml solution

TagsNo tags attached.

Activities

DenisChenu

DenisChenu

2019-03-05 15:13

developer   ~50776

Alt solution : Maybe : options can be imported from a twig view in theme ?

dominikvitt

dominikvitt

2019-03-14 11:06

developer   ~50973

Would additional attributes (like "base", "button", "awesome" and "button_awesome"), or any other attributes defined in attributes array, be used only on theme option page for dropdowns?

Or does it have some additional purpose? If so, where would those attribute be used?

DenisChenu

DenisChenu

2019-03-14 11:28

developer   ~50979

Last edited: 2019-03-14 11:30

View 4 revisions

Currently : i use for a dropdown (with categories) in twig options. The value is for aSurvey.options (template option).

I think we can have (in future maybe) some other HTML : radio button value->label , maybe input:number min/max or other htmlOptions ?

Maybe somthing in engine : https://github.com/LimeSurvey/LimeSurvey/blob/cab9fff96aa347c22b1f3b50a3e677f003d30a3d/themes/survey/vanilla/config.xml#L84

An idea :

<engine>
    <options>
        <animated>
            <optgroups>
                <seekers label="Attention Seekers">
                    <options>
                        <flash label="Flash">
                        <pulse label="Pulse">
                        <rubberBand label="rubberBand">
                    </option>
                </seekers>
            <optgroups>
        </animated>
    </options>
</engine>

Then : in options.twig : cab be readed via oTemplate.engine.options.animated ?

inherited by defaut (engine are not moved to the new config.xml) but an template editor can update it ?

dominikvitt

dominikvitt

2019-03-14 18:33

developer   ~50992

This feature is implemented.
https://github.com/LimeSurvey/LimeSurvey/commit/41e1d041f1c02fe0589e07c189fed1c076b070c0

Issue History

Date Modified Username Field Change
2019-03-05 15:08 DenisChenu New Issue
2019-03-05 15:08 DenisChenu Status new => assigned
2019-03-05 15:08 DenisChenu Assigned To => dominikvitt
2019-03-05 15:13 DenisChenu Note Added: 50776
2019-03-14 11:06 dominikvitt Note Added: 50973
2019-03-14 11:28 DenisChenu Note Added: 50979
2019-03-14 11:29 DenisChenu Note Edited: 50979 View Revisions
2019-03-14 11:29 DenisChenu Note Edited: 50979 View Revisions
2019-03-14 11:30 DenisChenu Note Edited: 50979 View Revisions
2019-03-14 18:33 dominikvitt Status assigned => resolved
2019-03-14 18:33 dominikvitt Resolution open => fixed
2019-03-14 18:33 dominikvitt Fixed in Version => 4.0.0dev
2019-03-14 18:33 dominikvitt Note Added: 50992