Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

get url in twig template

  • jucajuca
  • jucajuca's Avatar Topic Author
  • Offline
  • New Member
  • New Member
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?
Last edit: 3 years 10 months ago by jucajuca.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #201263 by tpartner
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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #201268 by holch
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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #201306 by tpartner
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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #201400 by DenisChenu
Replied by DenisChenu on topic get url in twig template
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.

Lime-years ahead

Online-surveys for every purse and purpose