Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Images don't display

Started by Muut Archive 9 years ago · 5 replies · 991 views
9 years ago

Hi.
I have tried following the gallery example at: https://learn.getgrav.org/cookbook/general-recipes#creating-a-simple-gallery

I have a gallery folder, containing a gallery.md file and some image files (.jpg)

My problem is I don't get any images displayed. When I check the page source, I see the <ul> and </ul> tags but with no list items between. For some reason it looks like Gra doesn't find the image files in my page folder.

What could cause that?

Thanks for your help!

Regards,
Ross.

9 years ago

The images are in the same folder that contains the gallery.md file? Not in a subfolder, right?

9 years ago

Yes, they are in the same folder as the gallery.md file. Images are all .jpg files.

9 years ago

your gallery folder is in your usr/pages folder?
you created a gallery.html.twig?

9 years ago

Hi all and thanks for your help. Here is the directory listing for my Grav gallery page. Hopefully it helps!

Directory of C:\wamp\www.website\user\pages\10.gallery

15/06/2017 09:34 PM <DIR> .
15/06/2017 09:34 PM <DIR> ..
15/06/2017 09:53 PM 40 gallery.md
18/12/2010 06:12 PM 34,629 zzr2008_001.jpg
18/12/2010 06:12 PM 32,107 zzr2008_002.jpg
18/12/2010 06:12 PM 39,597 zzr2008_003.jpg
18/12/2010 06:12 PM 32,659 zzr2008_004.jpg

All the best,
Ross.

9 years ago

I forgot to add that yes, I have a gallery.html.twig file:

C:\wamp\www.website\user hemes\mytheme emplates\gallery.html.twig

Ross.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1297 9 years ago
Archive · by Muut Archive, 9 years ago
2 894 9 years ago
Archive · by Muut Archive, 9 years ago
2 4024 9 years ago
Archive · by Muut Archive, 9 years ago
1 2899 9 years ago
Archive · by Muut Archive, 9 years ago
3 1082 9 years ago