Art Gallery Website Creator
Online Help

Click to see
all of our products!

Wieser
Software
Ltd

Macro Subsitutions

Art Gallery Website Generator supports the following substitutions. The items may have HTML code embedded in them. If you wish to strip any HTML from the output for a particular tag, prefix the name with the word BARE, so <@SHOWARTISTS@> would become <@BARESHOWARTISTS@>

By using the BARE feature, you can include links in the item, and still use it later for an image label.

Gallery Macros

<@GALLERY@>The name of your gallery
<@ADDRESS@>The address of your gallery.
<@PHONE@>The phone number of the gallery
<@EMAIL@>Your email address. This will be obfuscated when written into the files to cut down on spam from email harvesting robots.
<@HOMEPAGE@>This URL of your homepage.
<@LOGO@>The URL of your gallery logo

Show Macros

<@SHOWTITLE@>The title of the show
<@SHOWDATES@>The dates of the show
<@SHOWIMG@>The image set for the show
<@SHOWARTISTS@>The artists for the show
<@SHOW@>The directory name set on the options page for the show
<@SHOWDESCRIPTION@>A long description of the show
<@SHOWKEYWORDS@>A comma separated list of keywords for search engines
<@SHOWCOLORFG@>The color of the foreground for the show
<@SHOWCOLORBG@>The color of the background for the show
<@SHOWCOLORLINK@>The color of unvisited hyperlinks for the show
<@SHOWCOLORVLINK@>The color of visited links for the show
<@SHOWCOLORC1@>
<@SHOWCOLORC2@>
<@SHOWCOLORC3@>
<@SHOWCOLORC4@>
Four additional custom colors for the show

Item Macros

<@LARGEIMG@>The filename of the large image for the item
<@THUMB@>The filename of the thumbnail image for the item
<@TITLE@>The title of the item
<@ARTIST@>The name of the artist who created the item
<@DESC@>A short description of the item
<@DIMENSIONS@>The dimensions of the item
<@YEAR@>The year/date of the item
<@PRICE@>The price of the item
<@LONGDESC@>A long description of the item, which may contain HTML code
<@DOT@>If the item has been marked sold, the sold code from the options page is inserted in place of this macro.

Navigation Macros

<@LINKNAME@>A name for the item, to use for generating filenames for each item. <@NEXTLINKNAME@>The name of the next item, as above <@PREVLINKNAME@>The name of the previous item as above <@HYPERLINK@>An arbitrary hyperlink for the item. <@INDEX@>A two digit number of the index of the item. <@NEXTINDEX@>A two digit number which is the index of the next item <@PREVINDEX@>A two digit number which is the index of the previous item

Recursive Macros

In order to summarize all of your items on a single page, the program supports a special macro, named
<@SHOWITEMS[arguments]@>

This macro reads all of the text in the arguments section, and processes it for each item. It uses the first character of the argument as the new macro delimiter, so you will usually see it used like this:
<TABLE>
<TR>
<@SHOWITEMS#
  <TD>
    <img title="<#BARETITLE#>" alt="<#BARETITLE#>" src="<#THUMB#>"> <br>
    <A href="pop<#INDEX#>.htm"><#TITLE#><br><#ARTIST#></A>
  </TD>
@>
</TR>
</TABLE>

This code changes the macro delimiter from the default of @ to #.

It then generates cells for the table by repeatedly substituting the items inside the SHOWITEMS item.

Each item, will generate a new table cell (from <TD> to </TD>), containing an image, with a popup description which contains the title, as well as alternate text (for when images are not displayed in a browser) with the title, and a thumbnail view of the item. Under that it generates a hyperlinkcontaining the Title and Artist text to a page named popNN.htm where NN is the corresponding item number.

Inserting new rows inside a SHOWITEMS macro

If you want to insert a new row after an item, click the New Row button on the item. This will cause the program to output
</TR>
<TR>
after the item has been processed, effectively generating a new row in the table.