View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
13232 | Bug reports | Theme editor | public | 2018-01-22 17:17 | 2018-02-12 10:49 |
Reporter | Gabryxx7 | Assigned To | |||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.0.x | ||||
Fixed in Version | 3.1.x | ||||
Summary | 13232: Unable to load custom css and js | ||||
Description | I need to include some custom css and js files, and as the manual said I put the files under upload/themes/survey/{theme_name}/css and upload/themes/survey/{theme_name}/scripts, then I modified the config.xml file by adding ... Even after reloading, the page, updating asset version and even deleting the folders inside the tmp/assets folder, nothing has changed. | ||||
Steps To Reproduce |
| ||||
Additional Information | Is this the correct way to load .css and .js files? What if I need these files to be globally shared and available to every theme? | ||||
Tags | No tags attached. | ||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | Version 3.0.5+180118 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | MYSQL v.5.5 | ||||
Server OS (if known) | Debian 6 | ||||
Webserver software & version (if known) | Apache | ||||
PHP Version | 5.6.32 | ||||
manual should be updated: values in XML are pushed to DB. |
|
|
|
from the themes list (Theme Box on homepage) |
|
I just uninstalled and reinstalled the extended theme (extended from Bootswatch), and not only it is still not loading the newly added .css and .js files the config.xml, but it's also not loading the custom.css and custom.js files (which are not empty, as shown in the Theme Editor and confirmed by looking into the server). I am sure the extended theme is being used and loaded as I tried to put a {{ dump(aSurveyInfo) }} in the layout_global.twig file of the extended theme and when debug is set to 1 it actually prints the result. Is there something I am missing or did wrong? |
|
Nevermind, just uninstalled and reinstalled again, and it worked perfectly... I feel like eventually, this is always the best solution, how could I not think about it in the first place... |
|
don't worry: your bug report is greatly appreciated. |
|
I can see that, I dig deeper into the code, and it's quite complex, but definitely interesting. I switched from 2.7 to 3.0 some days ago, and I must say it was a HUGE improvement, I can modify litereally anything I want. I can get all the information I need regarding the survey, I can now create an index of the survey on the sidebar, customize and use the survey info on the page layout. I managed to load all the .css and .js files I needed. But It would be nice to add an "update" button to the theme which would be triggered by a version on the config.xml file. Uninstalling and reinstalling the theme to reflect changes on the config.xml file is not intuitive! If I may add, the .css and the .js file which I added in the config.xml file do not appear under the file list of the theme editor page! |
|
yep an update button is a good idea. |
|
Version 3.3.0 released |
|
The problem still exists local. It seems only to work on production. |
|
Big_Lemon: if you're using the Theme Editor, the save button now regenerate the assets: If you're not, you will now find a button to regenerate the assets in global settings: |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2018-01-22 17:17 | Gabryxx7 | New Issue | |
2018-01-24 11:28 |
|
Note Added: 45971 | |
2018-01-24 13:36 | Gabryxx7 | Note Added: 45981 | |
2018-01-24 14:13 |
|
Note Added: 45988 | |
2018-01-24 14:13 |
|
Note Added: 45989 | |
2018-01-24 14:56 | Gabryxx7 | Note Added: 45992 | |
2018-01-24 15:17 | Gabryxx7 | Note Added: 45993 | |
2018-01-24 15:30 |
|
Note Added: 45994 | |
2018-01-24 15:51 | Gabryxx7 | Note Added: 46016 | |
2018-01-24 15:55 | c_schmitz | Assigned To | => LouisGac |
2018-01-24 15:55 | c_schmitz | Status | new => assigned |
2018-01-24 16:37 |
|
Note Added: 46031 | |
2018-01-26 14:13 |
|
Status | assigned => resolved |
2018-01-26 14:13 |
|
Resolution | open => fixed |
2018-01-26 14:14 |
|
Fixed in Version | => 3.1.x |
2018-02-09 17:02 | c_schmitz | Note Added: 46371 | |
2018-02-09 17:02 | c_schmitz | Status | resolved => closed |
2018-02-10 15:34 | Big_Lemon | Note Added: 46383 | |
2018-02-12 10:49 |
|
Note Added: 46386 |