|
Generating BIOS & photo lists |
Top Previous Next |
|
Often it is useful to be able to generate lists of photos using a custom display format. For example, when listing photos of an organizations executive, staff, or listing coaches, the format often involves a photo and some text describing each person where the person is uploaded as an image into a specified user-defined photo category. Maintaining these lists in a document is tedious. Ideally when a photo is deleted from the photo library, we would like the image and text to be removed from the web-site automatically without needing to edit a document. The same is true when a photo is added. A module in NeatClubs.COM now automatically formats a collection of photos into the format required for "bios". The module automatically displays photos in a single user-defined photo collection with descriptive text in configurable ways. An example is shown below:
As shown above, the name of this module is "show_portraits.php". At a minimum, a user defined photo group needs to be specified as a part of the URL. Pictures are assumed to be 250 pixels wide unless specified otherwise on the URL command line. If the URL is called with no arguments, or incorrect arguments in the browser, it shows available options in a screen line the one below.
A sample call to this module is: http://guelphsaultos.ca/show_portraits.php?photogroup=Coach Photos&picture_width=100&suppress_titles=yes&preamble=237&postamble=238
|