- Posts: 10
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
get url in twig template
- jucajuca
- Topic Author
- Offline
- New Member
Less
More
3 years 10 months ago - 3 years 10 months ago #201230
by jucajuca
get url in twig template was created by jucajuca
Hello,
I want to load different css files depending on the url from which the survey is being called. For example.
onewebsite.com/survey.... > loads a.css
anotherpage.org/survey.... > loads b.css
how can I get the URL in the twig templates to select which css file to load?
I want to load different css files depending on the url from which the survey is being called. For example.
onewebsite.com/survey.... > loads a.css
anotherpage.org/survey.... > loads b.css
how can I get the URL in the twig templates to select which css file to load?
Last edit: 3 years 10 months ago by jucajuca.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10104
- Thank you received: 3593
3 years 10 months ago #201263
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic get url in twig template
I don't understand the question. How can you have two different survey URLs?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11655
- Thank you received: 2740
3 years 10 months ago #201268
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic get url in twig template
@tpartner: You can use the same LS install with a variety of domains. You just need to configure the domain onto the same folder on the server and depending on which Domain is called the same LS instance can be used under different URLs.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10104
- Thank you received: 3593
3 years 10 months ago #201306
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic get url in twig template
Okay, then the short answer is "no".
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
3 years 10 months ago #201400
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 get url in twig template
Plugin.
Since we can easily use App()->setConfig in plugin
Since we can easily use App()->setConfig in plugin
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.
The topic has been locked.