Building Content Management Systems
& e-Business Solutions

Code Snippets: Photo Gallery

Allows the owner of a website to maintain an image gallery.  This module takes a lot of the work out of building an online image gallery. It takes the uploaded image and creates two copies, a small, high quality preview, and a web friendly copy.  The original is discarded.

In short, this module creates a table of replaceable images.

Features

  • High quality previews.
  • Web friendly file formatting.
  • Optional text captioning with text size settings.
  • A variable number of columns and rows.

User Documentation

Deemed unnecessary.

Code

  • The parameters for the dynamic photo table must be set within the opening clearsite tag.
  • The table of funky background colors inside the clearsite tags is for page preview purposes.
<clearsite:hidden module="phototable" name="phototable1" width="100%" border="6" 
                 cellspacing="6" cellpadding="5" defaultcolumns="4" defaultrows="3"
                  cellalign="center">
    <table width="100%" border="6" cellspacing="6" cellpadding="5">
        <TR>
            <TD bgcolor="red">&nbsp;</TD>
            <TD bgcolor="blue">&nbsp;</TD>
            <TD bgcolor="green">&nbsp;</TD>
            <TD bgcolor="red">&nbsp;</TD>
        </TR>
        <TR>
            <TD bgcolor="red">&nbsp;</TD>
            <TD bgcolor="blue">&nbsp;</TD>
            <TD bgcolor="green">&nbsp;</TD>
            <TD bgcolor="red">&nbsp;</TD>
        </TR>
        <TR>
            <TD bgcolor="red">&nbsp;</TD>
            <TD bgcolor="blue">&nbsp;</TD>
            <TD bgcolor="green">&nbsp;</TD>
            <TD bgcolor="red">&nbsp;</TD>
        </TR>
    </table>
</clearsite:hidden>

    Copyright Clear Site Web Solutions Corporation  |  Victoria, B.C. Canada