---
title: 'Accessing images in page folder from modular.html.twig'
url: 'https://getgrav.org/forum/archive/accessing-images-in-page-folder-from-modular-html-twig-t497'
markdown: 'https://getgrav.org/forum/archive/accessing-images-in-page-folder-from-modular-html-twig-t497.md'
date: '2026-06-21'
description: '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'
---

[Archive](https://getgrav.org/forum/archive)

#  Accessing images in page folder from modular.html.twig 

  Started by Muut Archive 9 years ago · 1 replies · 1047 views    

 [9 years ago](https://getgrav.org/forum/archive/accessing-images-in-page-folder-from-modular-html-twig-t497#post-15377 "Permalink") 

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!

 [9 years ago](https://getgrav.org/forum/archive/accessing-images-in-page-folder-from-modular-html-twig-t497#post-15378 "Permalink") 

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="https://getgrav.org/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](https://getgrav.org/login?return=%2Fforum%2Farchive%2Faccessing-images-in-page-folder-from-modular-html-twig-t497) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [About the Archive category](https://getgrav.org/forum/archive/about-the-archive-category-t6942)    [Archive](https://getgrav.org/forum/archive) · by Deleted User, 9 years ago |  | 0 | 2860 | [9 years ago](https://getgrav.org/forum/archive/about-the-archive-category-t6942 "by Deleted User") |
| [Hey buddies!](https://getgrav.org/forum/archive/hey-buddies-t643)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 2 | 1872 | [9 years ago](https://getgrav.org/forum/archive/hey-buddies-t643 "by Muut Archive") |
| [There is a way to do a "if condition" in MD page?](https://getgrav.org/forum/archive/there-is-a-way-to-do-a-if-condition-in-md-page-t3377)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 2 | 5199 | [9 years ago](https://getgrav.org/forum/archive/there-is-a-way-to-do-a-if-condition-in-md-page-t3377 "by Muut Archive") |
| [Official docker image of grav (+admin +gitsync)](https://getgrav.org/forum/archive/official-docker-image-of-grav-admin-gitsync-t8519)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 1 | 4014 | [9 years ago](https://getgrav.org/forum/archive/official-docker-image-of-grav-admin-gitsync-t8519 "by Muut Archive") |
| [Weird Grav + caddy + iOS + https problem](https://getgrav.org/forum/archive/weird-grav-caddy-ios-https-problem-t7837)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 3 | 1960 | [9 years ago](https://getgrav.org/forum/archive/weird-grav-caddy-ios-https-problem-t7837 "by Muut Archive") |
