Welcome to the LimeSurvey Community Forum

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

Link meta tag for an icon - Relative image source

  • imzivi
  • imzivi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #169300 by imzivi
In Limesurvey 3.8 I use image("./files/logo.png") to insert a image into a twig file.
That way the logo.png is going to be served to the user using the asset manager.

I'm trying to insert a <link rel="icon" sizes="[...]" href="/upload/theme/files/icon.png"> using a relative path.
So that the asset manager takes care of serving the icon.

Providing the relative path with respect to the files folder from my twig source location does not appear to work.

The workaround of using slice to cut the image source and inserting this into href does not work.
Slice is not allowed.
<link rel="icon" href="{{ image("./files/icon.png")|[9,18] }}">

What is the intended way to do this?
The topic has been locked.
  • imzivi
  • imzivi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #169470 by imzivi
To get a relative image path use imageSrc.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #169476 by tpartner
Can you please expand on that? Use it how?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose