Simple Picture Gallery
From time to time I shoot some pictures. Holidays, rowing events the usual snapshot stuff, no world press photo for me. Still I want to show them to the world
There are a lot of fancy gallery programs. There is another cookbook about integration of one of them into pmwiki. This one is very K.I.S.S.. It uses the wiki itself for comments. And it allows hosting the image files on a different host as the wiki. (This is the main reason why I ever bothered about writing my own gallery-script)
I would like to share the bits of code although it is quite ugly. Comments for improvements are welcome I will try to tidy the code.
Each image will show on a single page, users can edit this page to add comments. Since the Gallery directive is in the groupheader there is no need to create every single page in advance. Pages that do not match a image file name will show the thumbnail index.
Each on a line, using a bullet * makes reading easier
some fancy name for your gallery.
No default value
maximum numbers of columns on a page.
Prefix for the thumb files. Can be a directory or filename.
Width of the thumbnails
Height of the thumbnails
Number of Thumbnails per page
Benefit would be read/write access restrictions
Using the Attach: Location
Using a remote Location
Where does the confusion start? Above are some links with examples, including the syntax. Feel free to email me, my cloacked address is at the bottom of the example pages ( Contact )
This would be sweet if the script could automatically generate the wikitext list of images - all the user would have to do is upload files and describe them. - Sproaticus September 13, 2005, at 12:11 PM
Use Attach: as location en use the image pages to upload. Still using FTP is a lot easier faster....
So It would be fine to have in the SimpleGallery config. Any body an idea of how to do this? thanks ed
Put Thumb:prefix_ in the Gallery.Config page (with Title:titleofyourgallery, Location:http://the/path/of/your/gallerie(approve links), and the list of the files)