Next: Improvements
Up: Smart Photo Gallery
Previous: Specifying directories (directories)
  Contents
Smart Photo Gallery
was designed to be as flexible as possible.
The html that appears as the client browses a photo gallery is generated based
on a template html that can be customised. The template engine used is Cheetah,
to learn more about the syntax of Cheetah, please follow this link:
http://cheetahtemplate.sourceforge.net/learn.html.
There are three template html files that need customisation. They all use the extension
thtml and are located in the same directory as spg.cgi.
- index.thml
- This is the main file use to browse through the different folders and
thumbnails. It shows a the list of subfolders of the current folder and a list
of thumbnails.
- show_image.thml
- This template is used to show the image in full page.
- msg.thml
-
#for $i in range(len($dirnames))
<A href="spg.cgi?mode=index&dir=$list_dir[$i]">$dirnames[$i]</A><br>
<br>
#end for
Bernard Niset
2001-09-04