View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18880 | Bug reports | Theme editor | public | 2023-06-13 16:23 | 2024-04-23 10:30 |
Reporter | DenisChenu | Assigned To | gabrieljenik | ||
Priority | none | Severity | partial_block | ||
Status | closed | Resolution | reopened | ||
Product Version | 5.6.x | ||||
Fixed in Version | 6.4.x | ||||
Summary | 18880: Unable to add imagefile except brandlogofile and backgroundimagefile in option | ||||
Description | When create new theme : we need to have more image files. I skelvanilla i have 2 more, but i think too for favicon | ||||
Steps To Reproduce | Steps to reproduceTry to create a template with 3 images files selector with
Expected resultHave a way to do it (adding imagelist for type or add it in another way) Actual resultNo way | ||||
Tags | No tags attached. | ||||
Bug heat | 36 | ||||
Complete LimeSurvey version number (& build) | 5.6.25 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | not relevant | ||||
Database type & version | not relevant | ||||
Server OS (if known) | not relevant | ||||
Webserver software & version (if known) | not relevant | ||||
PHP Version | not relevant | ||||
related to | 18894 | closed | tibor.pacalat | Not able to add theme option text input |
related to | 18893 | closed | file list do not show in dropdowns | |
related to | 18895 | closed | tibor.pacalat | No way to add textarea with core config.xml |
related to | 19085 | closed | mfavetti | Theme Options with an on/off switch are not disabled when page loads |
related to | 19086 | closed | mfavetti | Survey Theme Options: image preview does not work |
related to | 19183 | closed | mfavetti | No editing possible after setting the survey background |
@ollehar, there seem to be various regressions when it comes to defining theme options at the config.xml file, see related tickets. Since Limesurvey 6.x is already the official, latest release, can you please coordinate with the development team who can look into this? Because currently it is nearly impossible to adjust 3.x or 5.x themes due to these missing features. |
|
@tpartner, just pinging you here since you also work with custom themes a lot. |
|
@Mazi : please add This bug affects you and 1 other person(s). ;) |
|
@DenisChenu / @ollehar, which developer can best take care of these theme issues? |
|
Currently @p_teichmann and @twilllig are working on finishing LS6 for cloud and CU release. |
|
Wait is this a bug in 5 or 6? |
|
@ollehar, would be happy to see these theme tickets assigned to one of them. We noticed the issue when working on LS 6.x. But the same problem already seems to exist at 5.x. At that version the feature for theme settings at config.xml was introduced. |
|
Both |
|
We're still busy finishing off the new survey theme. Maybe someone else has time to pick it up? |
|
@ollehar, maybe you should fix broken stuff first before creating new features? Sometimes I wonder about how priorities are being set. |
|
I don't decide priority, sooo. We have two designated bug fixers and one tester. We can always discuss if that's enough or not. |
|
Any idea on the config.xml ? new type in https://github.com/LimeSurvey/LimeSurvey/blob/6d4934a1fcad053dbf96ac2d69ddfc02d3f79abc/themes/survey/vanilla/config.xml#L69 or new element inside |
|
Ps : i think we can have same issue for fonts : https://github.com/LimeSurvey/LimeSurvey/blob/6d4934a1fcad053dbf96ac2d69ddfc02d3f79abc/themes/survey/fruity/config.xml#L663 |
|
I will leave the implementation details to the experts, I can not contribute much here. But it should be possible to define more than one image to be shown. Using the options.twig this works fine, we did that for many custim themes. But the new feature of defining the theme options at config.xml should also support this. |
|
I think <dropdownimages></dropdownimages> is more easy with current system @ollehar : i can take this one : adding an optionnal <dropdownimages></dropdownimages> is OK or a new type or a new attribute ? I prefer new type, but need a compatibility system for current brandlogofile and backgroundimagefile |
|
I think @p_teichmann is better suited to leave feedback here. |
|
Yeah if it is needed, i don't see why we couldn't do that. But this is a feature request as far as i see it and not a bug? Regarding implementation i think defining a type for it would be a good idea. |
|
@p_teichmann, since LS 5.x already support defining theme options not via options.twig but using the config.xml file, I do not consider this a bug. It seems like this concept was never fully tested. |
|
Maybe a feature (if we can still use options.twig ? ) |
|
I looked a bit at the code regarding the xml options. This whole implementation with the xml file looks very incomplete in general, will need to discuss how we want fix this. |
|
Thanks for looking into this, p_teichmann. I had the same impression. The approach to use the config.xml is really great and it makes the whole template design process less error prone. But it seems the implementation is not complete, though this had become an official feature at LS 5.x. |
|
@ollehar, can someone please look into it? At LS 3.x and 5.x we had the option to have multiple image files. Defining the same at the config.xml at LS 6.x does not work at all. |
|
I'm currently not in the application team. Someone else should have a look. |
|
@ollehar, could you then assign the ticket to "someone else", who ever that is...? This really is a show stopper for our templates. |
|
Pinged the team. :) |
|
@ollehar, @c_schmitz, any updates? This really is a show stopper for template development at version 6.x. Weeks are passing by and currently we can not really create custom templates for the new version for our customers which start switching to 6.x. |
|
We are working on it. Have something to push next week |
|
Some notes: We were initially planning to convert the backgroundimagefile and brandlogofile options to the new option type (imagefile). Some Bugs Found: 1) For options that have a switch, they are supposed to be disabled when set to “No”. It actually disables the field when you press it. 2) LS assumes that certain types of settings (ex: dropdown and duration) GOT to have a switch to activate them. Shouldn't tha be optional? 3) In the theme options of the survey, the preview does not work (it opens the modal but does not find the image). 4) If you set a background image with debug = 2, you can no longer enter the theme options. |
|
Yes : need backward compatibility. |
|
Fixed here. Included in the PR. |
|
Created https://bugs.limesurvey.org/view.php?id=19085
Created https://bugs.limesurvey.org/view.php?id=19086 The only thing to follow up on is
|
|
Sorry, forgot to attach a test theme.
The first tag is the switch and the second tag (type=”image file”) is the dropdown. |
|
@gabrieljenik this issue was originally reported for 5.x, don't we want to port the fix there as well? |
|
Usually no developments are done to LTS |
|
@tibor.pacalat / @gabrieljenik: Will this fix finalle be part of the next 6.x release? |
|
@gabrieljenik, this is actually a bug fix I'd say, not a new feature. @tibor.pacalat: This issue was reported 5 months ago. Can we finally have this available at the next release? We really need this for template development for our customers. @c_schmitz: Will all Limesurvey 3 customers be force-updated to LS 6 in November? |
|
Sorry. I understand what you say. On this one I would need a green light from Carsten, Olle o Tibor to backport it. |
|
@gabrieljenik if you can make a PR for master fairly easily, we can include this in the next release. |
|
I will |
|
Potential optimization, no ? |
|
@tibor.pacalat Time to test? Code review is done. |
|
@gabrieljenik I am getting an error when I upload the test_18880.zip. I am using php 8.1 and debug=2. But, otherwise this works. |
|
Will review |
|
Try now again please |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=35794 |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=35793 |
|
Tested and merged. |
|
Hi @Mazi, as stated here https://bugs.limesurvey.org/view.php?id=18880#c77049 the type should be imagefile and not dropdown. With this setting, it works for me. Please let me know if this has solved your issue or there is something else to do here. @gabrieljenik can you also double check if there is something still buggy regarding this feature? |
|
I confirm what you say about "imagefile". |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=35931 |
|
Happy New Year everyone! |
|
@Mazi everything should work as expected on LS6 when using "imagefile". |
|
In version 6.5 when using imagefile in stead of dropdown, you loose the possibility to upload files to the theme. This is a show stopper for people that do not have FTP access. And, as Denis Chenu says on Discord: we only need one upload per tab where file access is needed.... |
|
Found it: the upload button only appears when there are imagefiles to be uploaded from the category (= tab in the interface) that is called "Images". Please change this to: images can be uploaded from each category that has one or more "imagefile" types. Thanking @DenisChenu ! |
|
Need a new Bug report/Feature requet. I close this one again. |
|
LimeSurvey: master 251e4609 2023-10-05 18:54 Gabriel Jenik Committer: GitHub Details Diff |
New feature 18880: New imagefile option type for theme options (#3433) Co-authored-by: lapiudevgit <devgit@lapiu.biz> |
Affected Issues 18880 |
|
mod - application/models/TemplateConfiguration.php | Diff File | ||
mod - application/views/themeOptions/options_core.php | Diff File | ||
LimeSurvey: master 37c0dea2 2023-11-29 17:13 Gabriel Jenik Committer: GitHub Details Diff |
New feature 18880: New imagefile option type for theme options (#3621) Co-authored-by: lapiudevgit <devgit@lapiu.biz> |
Affected Issues 18880 |
|
mod - application/controllers/admin/Themes.php | Diff File | ||
mod - application/models/TemplateConfiguration.php | Diff File | ||
mod - application/views/themeOptions/options_core.php | Diff File | ||
LimeSurvey: master 37c0dea2 2023-11-29 17:13 Gabriel Jenik Committer: GitHub Details Diff |
New feature 18880: New imagefile option type for theme options (#3621) Co-authored-by: lapiudevgit <devgit@lapiu.biz> |
Affected Issues 18880 |
|
mod - application/controllers/admin/Themes.php | Diff File | ||
mod - application/models/TemplateConfiguration.php | Diff File | ||
mod - application/views/themeOptions/options_core.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-06-13 16:23 | DenisChenu | New Issue | |
2023-06-16 15:08 | DenisChenu | Relationship added | related to 18893 |
2023-06-19 08:24 | DenisChenu | Relationship added | related to 18895 |
2023-06-19 08:31 | DenisChenu | Relationship added | related to 18894 |
2023-06-19 08:32 | DenisChenu | Severity | minor => partial_block |
2023-06-19 09:54 | Mazi | Note Added: 75696 | |
2023-06-19 09:54 | Mazi | Bug heat | 0 => 2 |
2023-06-19 09:54 | Mazi | Issue Monitored: Mazi | |
2023-06-19 09:54 | Mazi | Bug heat | 2 => 4 |
2023-06-19 09:55 | Mazi | Note Added: 75697 | |
2023-06-19 10:23 | DenisChenu | Note Added: 75702 | |
2023-06-19 10:23 | DenisChenu | Bug heat | 4 => 6 |
2023-06-19 10:36 | Mazi | Bug heat | 6 => 12 |
2023-06-28 11:03 | Mazi | Note Added: 75883 | |
2023-06-28 11:52 | ollehar | Note Added: 75887 | |
2023-06-28 11:52 | ollehar | Bug heat | 12 => 14 |
2023-06-28 11:52 | ollehar | Note Edited: 75887 | |
2023-06-28 11:52 | ollehar | Note Edited: 75887 | |
2023-06-28 11:53 | ollehar | Note Added: 75888 | |
2023-06-28 12:35 | Mazi | Note Added: 75891 | |
2023-06-28 12:37 | DenisChenu | Note Added: 75892 | |
2023-06-29 12:55 | ollehar | Note Added: 75902 | |
2023-07-11 12:17 | Mazi | Note Added: 76031 | |
2023-07-11 14:06 | ollehar | Note Added: 76037 | |
2023-07-11 16:58 | DenisChenu | Note Added: 76051 | |
2023-07-11 17:00 | DenisChenu | Note Added: 76052 | |
2023-07-11 19:06 | Mazi | Note Added: 76053 | |
2023-07-12 08:11 | DenisChenu | Note Added: 76055 | |
2023-07-12 10:27 | ollehar | Note Added: 76057 | |
2023-07-12 19:54 | p_teichmann | Note Added: 76066 | |
2023-07-12 19:54 | p_teichmann | Bug heat | 14 => 16 |
2023-07-12 20:34 | Mazi | Note Added: 76067 | |
2023-07-13 07:38 | DenisChenu | Note Added: 76070 | |
2023-07-13 12:00 | p_teichmann | Note Added: 76073 | |
2023-07-13 12:08 | p_teichmann | Note Edited: 76073 | |
2023-07-13 13:24 | Mazi | Note Added: 76076 | |
2023-08-24 21:51 | Mazi | Note Added: 76703 | |
2023-08-25 00:51 | guest | Bug heat | 16 => 22 |
2023-08-25 10:37 | ollehar | Note Added: 76707 | |
2023-08-25 10:42 | Mazi | Note Added: 76709 | |
2023-08-25 10:51 | ollehar | Note Added: 76710 | |
2023-09-07 22:19 | Mazi | Note Added: 76911 | |
2023-09-08 21:20 | gabrieljenik | Assigned To | => gabrieljenik |
2023-09-08 21:20 | gabrieljenik | Status | new => assigned |
2023-09-08 21:30 | gabrieljenik | Note Added: 76932 | |
2023-09-08 21:30 | gabrieljenik | Bug heat | 22 => 24 |
2023-09-11 16:17 | gabrieljenik | Assigned To | gabrieljenik => ollehar |
2023-09-11 16:17 | gabrieljenik | Status | assigned => ready for code review |
2023-09-11 16:17 | gabrieljenik | Note Added: 76938 | |
2023-09-11 16:18 | gabrieljenik | Assigned To | ollehar => p_teichmann |
2023-09-11 16:39 | gabrieljenik | Note Added: 76940 | |
2023-09-11 16:43 | DenisChenu | Note Added: 76941 | |
2023-09-11 17:59 | gabrieljenik | Note Added: 76944 | |
2023-09-14 14:46 | gabrieljenik | Issue cloned: 19085 | |
2023-09-14 14:46 | gabrieljenik | Relationship added | related to 19085 |
2023-09-14 14:49 | gabrieljenik | Issue cloned: 19086 | |
2023-09-14 14:49 | gabrieljenik | Relationship added | related to 19086 |
2023-09-14 14:51 | gabrieljenik | Note Added: 77037 | |
2023-09-14 16:31 | gabrieljenik | Note Added: 77049 | |
2023-09-14 16:31 | gabrieljenik | File Added: test_18880.zip | |
2023-09-14 16:32 | gabrieljenik | Note Edited: 77049 | |
2023-09-14 16:33 | gabrieljenik | Note Edited: 77049 | |
2023-10-05 13:16 | p_teichmann | Status | ready for code review => in code review |
2023-10-05 15:06 | p_teichmann | Status | in code review => ready for testing |
2023-10-05 15:07 | p_teichmann | Assigned To | p_teichmann => tibor.pacalat |
2023-10-05 16:56 | tibor.pacalat | Note Added: 77526 | |
2023-10-05 16:56 | tibor.pacalat | Bug heat | 24 => 26 |
2023-10-05 17:08 | gabrieljenik | Note Added: 77529 | |
2023-10-05 17:51 | tibor.pacalat | Status | ready for testing => resolved |
2023-10-05 17:51 | tibor.pacalat | Resolution | open => fixed |
2023-10-11 14:43 | Mazi | Note Added: 77625 | |
2023-10-20 22:23 | mfavetti | Relationship added | related to 19183 |
2023-11-13 09:58 | Mazi | Note Added: 78402 | |
2023-11-13 14:02 | gabrieljenik | Note Added: 78409 | |
2023-11-14 11:38 | tibor.pacalat | Note Added: 78449 | |
2023-11-14 19:58 | gabrieljenik | Note Added: 78479 | |
2023-11-16 14:21 | gabrieljenik | Assigned To | tibor.pacalat => DenisChenu |
2023-11-16 14:21 | gabrieljenik | Status | resolved => ready for code review |
2023-11-16 14:21 | gabrieljenik | Note Added: 78503 | |
2023-11-17 15:24 | DenisChenu | Assigned To | DenisChenu => gabrieljenik |
2023-11-17 15:24 | DenisChenu | Status | ready for code review => in code review |
2023-11-17 15:24 | DenisChenu | Note Added: 78513 | |
2023-11-28 09:30 | ollehar | Note Added: 78760 | |
2023-11-28 16:05 | tibor.pacalat | Note Added: 78773 | |
2023-11-28 16:05 | tibor.pacalat | File Added: Screenshot 2023-11-28 at 15.59.42.png | |
2023-11-28 16:05 | tibor.pacalat | Assigned To | gabrieljenik => tibor.pacalat |
2023-11-28 16:18 | tibor.pacalat | Note Edited: 78773 | |
2023-11-28 16:41 | gabrieljenik | Note Added: 78782 | |
2023-11-28 20:34 | gabrieljenik | Note Added: 78797 | |
2023-11-29 16:13 | Changeset attached | => LimeSurvey master 37c0dea2 | |
2023-11-29 16:13 | guest | Note Added: 78807 | |
2023-11-29 16:13 | guest | Bug heat | 26 => 28 |
2023-11-29 16:13 | Changeset attached | => LimeSurvey master 37c0dea2 | |
2023-11-29 16:13 | guest | Note Added: 78808 | |
2023-11-29 16:13 | tibor.pacalat | Status | in code review => resolved |
2023-11-29 16:13 | tibor.pacalat | Note Added: 78809 | |
2023-12-13 10:51 | tibor.pacalat | Assigned To | tibor.pacalat => gabrieljenik |
2023-12-13 10:51 | tibor.pacalat | Status | resolved => new |
2023-12-13 10:51 | tibor.pacalat | Resolution | fixed => reopened |
2023-12-13 10:52 | DenisChenu | View Status | public => private |
2023-12-13 10:52 | DenisChenu | Bug heat | 28 => 34 |
2023-12-13 10:52 | DenisChenu | View Status | private => public |
2023-12-13 10:52 | DenisChenu | Bug heat | 34 => 28 |
2023-12-13 16:57 | tibor.pacalat | Note Added: 78972 | |
2023-12-14 18:14 | gabrieljenik | Note Added: 78994 | |
2023-12-18 12:49 | Changeset attached | => LimeSurvey master 251e4609 | |
2023-12-18 12:49 | guest | Note Added: 79027 | |
2024-01-08 11:04 | Mazi | Note Added: 79100 | |
2024-01-08 11:10 | tibor.pacalat | Status | new => resolved |
2024-01-08 11:10 | tibor.pacalat | Resolution | reopened => fixed |
2024-01-08 11:13 | tibor.pacalat | Note Added: 79101 | |
2024-01-16 10:11 | guest | Bug heat | 28 => 34 |
2024-04-23 08:55 | tammo | Status | resolved => feedback |
2024-04-23 08:55 | tammo | Resolution | fixed => reopened |
2024-04-23 08:55 | tammo | Note Added: 79974 | |
2024-04-23 08:55 | tammo | Bug heat | 34 => 36 |
2024-04-23 08:58 | tammo | Note Edited: 79974 | |
2024-04-23 08:59 | tammo | Note Edited: 79974 | |
2024-04-23 09:26 | tammo | Note Added: 79976 | |
2024-04-23 10:29 | DenisChenu | Note Added: 79981 | |
2024-04-23 10:29 | DenisChenu | Status | feedback => assigned |
2024-04-23 10:30 | DenisChenu | Status | assigned => closed |
2024-04-23 10:30 | DenisChenu | Fixed in Version | => 6.4.x |