Page 1 of 1
Show all images in a directory
Posted: Mon Nov 07, 2022 12:30 pm
by aml02873
Is there a possibility to show all photos in a certain directory?
I want to give someone the opportunity to upload photos that are then all shown on the website
Re: Show all images in a directory
Posted: Mon Nov 07, 2022 1:30 pm
by Pablo
The built-in photo gallery (and slideshow) can display images from a folder on the server.
Properties -> Source -> Get images from a folder on the server
Re: Show all images in a directory
Posted: Sat Apr 29, 2023 3:20 pm
by Rick47
What is the convention when naming a server directory when using Photo Gallery.
I have tried ‘..\MyPhotos’ and ‘\public_html\MyPhotos’ , ‘/public_html/MyPhotos’ but I get a blank object.
What am I missing?
Re: Show all images in a directory
Posted: Sat Apr 29, 2023 3:29 pm
by Pablo
The path should be relative to the current folder.
So, if the 'MyPhotos' is in the current folder then it should be:
./MyPhotos
Note that filenames and folders are case sensitive.
Re: Show all images in a directory
Posted: Sat Apr 29, 2023 4:23 pm
by Rick47
Clearly I’m doing something wrong as I’m getting nothing:
My website is in ‘/public_html/showphotos’
My images are in ‘/public_html/MyPhotos’
(slashes orientation just copied from FileZilla)
Using your example I assume target directory would be ‘..\MyPhotos’
(although I have also tried ‘.\MyPhotos’ and ../MyPhotos’)
OK sorted - page should be .php. Duhh!