View Issue Details

This bug affects 3 person(s).
 18
IDProjectCategoryView StatusLast Update
18895Bug reportsTheme editorpublic2023-11-28 09:26
ReporterDenisChenu Assigned To 
PrioritynoneSeveritypartial_block 
Status confirmedResolutionopen 
Product Version5.6.x 
Summary18895: No way to add textarea with core config.xml
Description

There are no textarea available for core config.xml

Steps To Reproduce

Steps to reproduce

Try to add a textarea via options.xml

Expected result

Have a way : type='text' rows='4' OR type='textarea'

Actual result

No way

TagsNo tags attached.
Bug heat18
Complete LimeSurvey version number (& build)5.6.25 and 6.1.3
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Relationships

related to 18880 resolvedtibor.pacalat Unable to add imagefile except brandlogofile and backgroundimagefile in option 
related to 19049 closedtibor.pacalat Cannot export LSS from survey where theme is set to one extended from 'bootswatch' 
related to 18894 resolvedtibor.pacalat Not able to add theme option text input 

Users monitoring this issue

User List There are no users monitoring this issue.

Activities

Mazi

Mazi

2023-09-12 09:35

updater   ~76954

@DenisChenu, we are using a textarea for defining the template footer details at our themes via a theme option. That works fine using this code:

OPTIONS.TWIG:
<div class='row'>
<div class='col-sm-12'>
<div class='panel panel-default'>
<div class='panel-heading'>{{ gT("Footer") }}</div>
<div class='panel-body'>
<div class='form-group row'>
<label for='simple_edit_options_footer' class='control-label'>{{ gT("Footer text/copyright (HTML links supported)") }}</label>
<div class="input-group">
<textarea rows="5" cols="200" data-inheritvalue="{{oParentOptions.footer | escape}}" name="footer" class="selector_option_value_field selector__color-picker form-control simple_edit_options_footer" data-id="footer"></textarea>
</div>
</div>
</div>
</div>
</div>
</div>

CONFIG.XML:
<footer>© Company name</footer>

DenisChenu

DenisChenu

2023-09-12 10:32

developer   ~76955

Last edited: 2023-09-12 10:33

In option.twig : yes, but not by config.xml only.

I mean : i already have a options.twig : https://gitlab.com/SondagesPro/SurveyThemes/skelvanilla/-/tree/master/options?ref_type=heads
But if i want to remove it : need toi update core.

Update the description : options.xml

Mazi

Mazi

2023-09-12 10:53

updater   ~76956

You are right, at config.xml this is missing. I have adjusted the ticket title since it was mentioning options.xml.

Mazi

Mazi

2023-09-12 10:54

updater   ~76957

@gabrieljenik, I hope you don't mind if we assign this one to you as well since this is also affecting setting theme options at config.xml so this is similar to your tickets
https://bugs.limesurvey.org/view.php?id=18880
https://bugs.limesurvey.org/view.php?id=18894

Mazi

Mazi

2023-09-13 15:26

updater   ~76990

@DenisChenu, we already have a solution for text inputs at https://bugs.limesurvey.org/view.php?id=18894. Would you be able to extend this for textareas as well? I think we really need this feature for LS 6.x templates.

Mazi

Mazi

2023-09-18 13:40

updater   ~77110

@ollehar: This issue is confirmed, but what are the next steps for fixing it? We already have a solution for text inputs at https://bugs.limesurvey.org/view.php?id=18894. Can we add support for textareas in a similar way?

ollehar

ollehar

2023-09-18 13:59

administrator   ~77115

Hm I'm not in the application team anymore, maybe ping @p_teichmann?

Mazi

Mazi

2023-10-11 14:46

updater   ~77628

@p_teichmann, @tibor.pacalat, what can we do to get this bug fixed similar to the fix for text inputs at 18894?

Mazi

Mazi

2023-11-02 12:00

updater   ~78212

@c_schmitz: At options.twig it was a piece of cake to use a textarea as theme option. When defining theme options at the config.xml, this is not doable which is a big disadvantage.
Nearly all our custom themes use a textarea for a "footer" theme option which allows them to enter simple text or HTML with links to their imprint or data privacy statements.
What can we do to support this at 6.x as well?

DenisChenu

DenisChenu

2023-11-02 12:18

developer   ~78213

Nearly all our custom themes use a textarea for a "footer" theme option which allows them to enter simple text or HTML with links to their imprint or data privacy statements.

I didn't mind for this place, interesting too.

If you use textearea : https://github.com/LimeSurvey/LimeSurvey/pull/3521 must be tested.

ollehar

ollehar

2023-11-28 09:26

administrator   ~78759

@gabrieljenik You unassigned yourself from this? At 2023-09-13.

Issue History

Date Modified Username Field Change
2023-06-19 08:24 DenisChenu New Issue
2023-06-19 08:24 DenisChenu Relationship added related to 18894
2023-06-19 08:24 DenisChenu Relationship added related to 18880
2023-06-19 10:37 tibor.pacalat Bug heat 0 => 6
2023-08-25 00:51 guest Bug heat 6 => 12
2023-09-12 09:35 Mazi Note Added: 76954
2023-09-12 09:35 Mazi Bug heat 12 => 14
2023-09-12 10:32 DenisChenu Note Added: 76955
2023-09-12 10:32 DenisChenu Bug heat 14 => 16
2023-09-12 10:33 DenisChenu Summary No way to add textarea with core options.twig => No way to add textarea with core options.xml
2023-09-12 10:33 DenisChenu Description Updated
2023-09-12 10:33 DenisChenu Steps to Reproduce Updated
2023-09-12 10:33 DenisChenu Note Edited: 76955
2023-09-12 10:52 Mazi Summary No way to add textarea with core options.xml => No way to add textarea with core config.xml
2023-09-12 10:52 Mazi Description Updated
2023-09-12 10:53 Mazi Note Added: 76956
2023-09-12 10:53 Mazi Assigned To => gabrieljenik
2023-09-12 10:53 Mazi Status new => assigned
2023-09-12 10:54 Mazi Note Added: 76957
2023-09-13 14:36 gabrieljenik Assigned To gabrieljenik =>
2023-09-13 14:36 gabrieljenik Status assigned => confirmed
2023-09-13 15:26 Mazi Note Added: 76990
2023-09-18 13:40 Mazi Note Added: 77110
2023-09-18 13:59 ollehar Note Added: 77115
2023-09-18 13:59 ollehar Bug heat 16 => 18
2023-10-11 14:46 Mazi Note Added: 77628
2023-11-02 12:00 Mazi Note Added: 78212
2023-11-02 12:18 DenisChenu Note Added: 78213
2023-11-02 12:19 DenisChenu Relationship added related to 19049
2023-11-28 09:26 ollehar Note Added: 78759