Note - we will replace the thtml format at some point, so don't get too
attached to it...
albumtemplates:
photopub supplied variables:
everything defined as a parameter - default value is that given in the
template, value can be overridden in the url
$styleroot - "style=/jcr/standard" => "/jcr"
$page - what page you're on (of a multipage view)
$album - what album this is
$description - description of the group or album link
$photocount - number of photos in the group
tags for which things happen:
- Exports $foo into the document, default
value of bar, which can be changed in the url
- Maximum number of entries on a page
.... - go through this section for every entry
- reversed order to normal
- reverse the order of the group entries,
but keep the link entries un-reversed and at the top
.... - go through this section for every group
found
.... - go through this section for every link found
.... - if the entry number, divided by a,
leaves a remainder of b, go through this section
....
- replace this with a link to the group, with a style of "foo".
STYLE="foo" is optional if an appropriate default exists,
and "foo" can be either a relative or an absolute reference.
.... - replace this with a link to the album
.... - go through this section if we have multiple
pages
.... - go through this section if we only have a
single page
.... - go through this section if we have a next page
.... - go through this section if we have a previous
page
.... - replace this with a link to the next page
$nexturl - the URL that gets put into the
.... - replace this with a link to the previous page
$prevurl - the URL that gets put into the
.... - go through this section if there are
multiple photos in the group
.... - go through this section if there is
only one photo in the group
.... - go through this section if there are
no photos in the group
.... - go through this section if there are
some photos in the group. May contain:
- Display the first image from the group (.... can
be anything you'd normally have in a range.pl IMG tag)
- As above, but the last image from the group
- As above, but a random image from the group
- An alternative tag for above
rangetemplates:
photopub supplied variables:
everything defined as a parameter - default value is that given in the
template, value can be overridden in the url
$styleroot - "style=/jcr/standard" => "/jcr"
$page - what page you're on (of a multipage view)
$range - what range this is
$description - description of the photo is
$title - if a titles parameter was supplied, then the title if the
range could be found in the album in this parameter
tags for which things happen:
- Exports $foo into the document, default
value of bar, which can be changed in the url
- Maximum number of entries on a page
.... - go through this section for every
picture
.... - go through this section if the photo has a
description
.... - go through this section if a valid title
was found
.... - go through this section if there wasn't
a valid title found
.... - if the entry number, divided by a,
leaves a remainder of b, go through this section
.... - replace this with a link to the picture
.... - replace this with a link to the
picture, scaled to an a'th of the size
- replace this with an IMG tag pointing to the picture
- replace this with an IMG tag pointing to
the picture, scaled to fit inside a box of size AAAxBBB
- replace this with an IMG tag pointing to the
picture, scaled to an a'th of the size
... and possibly a few more...