|
Cookbook /
SimpleGallerySimple Picture GalleryFrom 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. Installation
(:Gallery GalleryName.Config:)
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. ParametersEach on a line, using a bullet * makes reading easier Titlesome fancy name for your gallery. Location
No default value Maxcolmaximum numbers of columns on a page. ThumbPrefix for the thumb files. Can be a directory or filename. WidthWidth of the thumbnails HeightHeight of the thumbnails LimitNumber of Thumbnails per page Notes
Benefit would be read/write access restrictions
Constraints
Bugs
ExamplesUsing the Attach: LocationUsing a remote LocationComments
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 multiple Prefix 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)
|