I followed docs on your site and used page folder to store images (_intro). Now I have a really hard time finding out how to get relative path of each images dynamically in my twig file. Also is it possible to access _intro folder images from modular.html.twig? thank you!
Archive
Yes, using folder paths like shown below. you can point any an images in the modular.html.twig file to the image location.
Path Description
<img src="picture.jpg"> picture.jpg is located in the same folder as the current page
<img src="images/picture.jpg"> picture.jpg is located in the images folder located in the current folder
<img src="/images/picture.jpg"> picture.jpg is located in the images folder located at the root of the current web
<img src="../picture.jpg"> picture.jpg is located in the folder one level up from the current folder
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1981 | 9 years ago | ||
| 2 | 1334 | 9 years ago | ||
| 2 | 4536 | 9 years ago | ||
| 1 | 3390 | 9 years ago | ||
| 3 | 1486 | 9 years ago |