ASM comes with three different internet templates - ``plain'', ``rss''
and ``sm.com''.
plain produces very simple HTML output - just the animal's picture
and a few details in a list.
rss produces XML output for interpreting by an RSS feed reader.
sm.com is much more advanced, using CSS hover elements
and javascript to do image substitution for icons and other tricks.
You can edit these templates (look in the /internet directory of the
System->Media Files section) and add your own new ones if desired
- as far as ASM is concerned, a template is just a another folder
in that internet folder.
An internet template is split into three files:
- pih.dat: The header file - this is output for each
page before any animal records.
- pif.dat: The footer file - this is output for each
page after all the animal records.
- pib.dat: The body file - this is output for each animal
record and has keys to pull bits of data from the database and the
animal's image. The keys available are those available for the animal
document (see wordkeys in the appendix at the end of this document)
and are enclosed in $$ - eg: $$ShelterCode$$ will output the
animal's shelter code.
A number of special keys are allowed in the pih.dat and pif.dat files
that pull information from other areas of the system. These are:
- $$ORGNAME$$ - Becomes your organisation's name
- $$ORGADDRESS$$ - Your organisation's address
- $$ORGTEL$$ - Your organisation's telephone number (all of these
org fields can be found under System->Options)
- $$ORGEMAIL$$ - Your email address (this is taken from System->Configure
Email)
- $$USER$$ - Substitutes the current system user, including their
real name
- $$DATE$$ - The current date
- $$TIME$$ - The current time
- $$DATETIME$$ - The current date and time
- $$VERSION$$ - The ASM version
- $$NAV$$ - The page navigation bar generated by the publisher
- $$TOTAL$$ - The number of animals output by the publisher
http://sheltermanager.sf.net