- Posts: 19
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Issue with images in footer
- cgrewal94
- Topic Author
- Offline
- New Member
Less
More
5 months 2 weeks ago #251895
by cgrewal94
Issue with images in footer was created by cgrewal94
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.43
Own server or LimeSurvey hosting: Own Server
Survey theme/template: Custom template
==================
Hi there,
I was wondering why my image for the footer is not showing up properly. I am editing the info.twig file within my custom theme. I have attached a screenshot of what I have in the info.twig file - the src seems to be different when actually loading the image.
In my twig file, the url is: mango.sentis.ca/upload/themes/survey/sen...-by-sentis-small.png
But in the console when you load the page the url changes to: mango.sentis.ca/upload/themes/survey/sen...-by-sentis-small.png
It replaces the "/" with "image::theme::" bit
Any idea why this is the case? Seemed to work fine in Limesurvey 3
Your LimeSurvey version: 5.6.43
Own server or LimeSurvey hosting: Own Server
Survey theme/template: Custom template
==================
Hi there,
I was wondering why my image for the footer is not showing up properly. I am editing the info.twig file within my custom theme. I have attached a screenshot of what I have in the info.twig file - the src seems to be different when actually loading the image.
In my twig file, the url is: mango.sentis.ca/upload/themes/survey/sen...-by-sentis-small.png
But in the console when you load the page the url changes to: mango.sentis.ca/upload/themes/survey/sen...-by-sentis-small.png
It replaces the "/" with "image::theme::" bit
Any idea why this is the case? Seemed to work fine in Limesurvey 3
Attachments:
The following user(s) said Thank You: DenisChenu
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
5 months 2 weeks ago #251897
by DenisChenu
But i don't understand why it's happen here ? There are no reason here …
Maybe need to be reported as an issue ?
(temporary : can you put the image out of this server and try again ?)
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.
Replied by DenisChenu on topic Issue with images in footer
There are an update on the dropdown system adding image::theme:: on dropdown ( already reported )It replaces the "/" with "image::theme::" bit
Any idea why this is the case? Seemed to work fine in Limesurvey 3
But i don't understand why it's happen here ? There are no reason here …
Maybe need to be reported as an issue ?
(temporary : can you put the image out of this server and try again ?)
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.
Please Log in to join the conversation.
- cgrewal94
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 1
5 months 2 weeks ago #251971
by cgrewal94
Replied by cgrewal94 on topic Issue with images in footer
Thanks Denis!
Realized there was another setting in the twig file which was causing that issue. I've attached the screenshot. For now I've just updated it to be static images but is there a way to make it dynamic with the selector in theme options?
Thanks!
Realized there was another setting in the twig file which was causing that issue. I've attached the screenshot. For now I've just updated it to be static images but is there a way to make it dynamic with the selector in theme options?
Thanks!
Attachments:
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
5 months 2 weeks ago - 5 months 2 weeks ago #251980
by DenisChenu
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.
Replied by DenisChenu on topic Issue with images in footer
OK, then need the workaround
gitlab.com/SondagesPro/SurveyThemes/skel...ea497b426a4fe603_6_6
You can put a +1 to the issue reported …
Code:
str_replace('image::theme::','',aSurveyInfo.options.extrasettings);
gitlab.com/SondagesPro/SurveyThemes/skel...ea497b426a4fe603_6_6
You can put a +1 to the issue reported …
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.
Last edit: 5 months 2 weeks ago by DenisChenu.
Please Log in to join the conversation.
- cgrewal94
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 1
5 months 2 weeks ago #252009
by cgrewal94
Replied by cgrewal94 on topic Issue with images in footer
Thanks!
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
5 months 2 weeks ago #252011
by DenisChenu
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.
Replied by DenisChenu on topic Issue with images in footer
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.
Please Log in to join the conversation.