Behaviour.php
The name of any database field may be used as a tag. In addition:
  • Any field name may be prefixed by PLAIN_ to disable the formatter, if any.
  • any field name may be prefixed by UC_, LC_ or TC_ to make the content upper, lower or title case respectively, ignoring the formatter, if any
Other tags are:
{{ADDED_BY_CONTACT_ID}} Replaced with the contact_id corresponding to the uid in added_by.
{{ADMIN_CONDITIONAL}} Use with 'magic comments' to display content only to admins and super-admins.
{{CONTACTS_BY_FAVOURITES}} Returns a list of contacts who've chosen the current item as favourite.
{{COUNT}} In listing and 'all details' views, a number incrementing with each item, starting with 1.
{{DETAIL_LINK_OPEN}} In listing view, an opening <a>, the target of which is the detail view of a given item.
{{DETAIL_LINK_CLOSE}} </a>
{{ENDROW}} In listing view, the rank in the dataset of the last item on the page.
{{FILE_ICON_<a field>}} Returns an icon representing the MIME-type of the file specified in the field.
{{FILENAME}} In the presence of a 'filepath' variable, returns the basename() component of 'filepath'.
{{FILTER}} In listing view, shows a filter menu.
{{FROM_TO_DATE}} A date range from the relevent database fields as defined in the 'behaviours' table. The dates are formatted as short date or pretty date in listing and detail views respectively.
{{GROUP_CONDITIONAL}} Use with 'magic comments' to display content only to those who belong to the same group as the current location, and to admins and super-admins.
{{ITEMOFFSET}} The offset of a given item within the dataset.
{{LINK_BACK}} In detail view, displays a link to the listing view.
{{LINK_TARGET}} Where 'link_target_attribute' is set and not blank, a string like target="{{LINK_TARGET_ATTRIBUTE}}". This is so that no 'target' attribute will appear in links where the 'link_target_attribute' is not set, or is blank.
{{KEYWORDS}} Creates a menu for filtering by keyword.
{{LIST_RELATED_<table name : field name>_FROM_ID}} Creates a list of links to items in the table specified in the tag where the field name specified in the tag (assumed to be a CSV field) contains the current item's unique id.
{{LC_<tag name>}} The value of the specified field set to lower case, without processing by the formatter, if any, specified in the 'fields' table.
{{LOGGED_IN_CONDITIONAL}} Use with 'magic comments' to display content only to those who are logged in.
{{NEXTLINK}} In listing view, displays a link to the next item in the dataset.
{{NUMERICAL_PAGEMENU}} In listing view, displays a paragraph of (up to 9) numbered links like PAGEMENU. Includes contextual First, Prvious, Next and Last links.
{{ORDERBY}} In listing view, shows an order-by menu.
{{PAGEMENU}} An unordered list of other similar content at the same location ID, e.g. a list of all the pages belonging to a single article.
{{PAGINGNAV}} A series of links to individual pages of paged content, including 'first', 'previous', 'next' and 'last' links.
{{PLAIN_<tag name>}} Replaced by the value of the specified field, without processing by the formatter, if any, specified in the 'fields' table.
{{PREVIOUSLINK}} In listing view, displays a link to the previous item in the dataset.
{{PREVNEXT}} In the detail footer, provides links to the previous and next items, if any, at the current location.
{{RELATED_CONTACTS}} Displays an unordered list of links to contacts whose contact ID appears in the field specified in location preferences by the '<behavior system name>_related_contacts_local_field' field, assumed to be a CSV field.
{{ROWOPTIONS}} In listing view, displays a menu allowing the user to choose how many items to display on a listing page.
{{SHOW_ARCHIVE}} In listing view, a contextual link for showing or hiding items which are out of date.
{{STARTROW}} In listing view, the rank in the dataset of the first item on the page.
{{TC_<tag name>}} The value of the specified field set to title case (i.e. first letter of each word in upper case, the rest lower), without processing by the formatter, if any, specified in the 'fields' table.
{{TOTALROWS}} In listing view, the total number of items in the dataset.
{{UC_<tag name>}} The value of the specified field set to upper case, without processing by the formatter, if any, specified in the 'fields' table.
catalogue.php
Includes Behaviour.php and so also allows any database field to be used as a tag. Other tags are:
{{CANDY}} In listing view or checkout, alternates 'dark' and 'light'.
{{CART_FORM}} In checkout, the actual form which sends to PayPal.
{{CAT_NO}} The contents of the 'cat_no' field of a catalogue item.
{{EMPTY_CART}} In checkout, a button for emptying the cart of all items.
{{LOCATION_ID}} The location id of the current page.
{{LINK_TO_ITEM}} In listing view, the URL of the detail for a given item.
{{PAGE_STYLE}} The page style specified in location preferences.
{{PAYMENT_EMAIL}} The e-mail address specified in location preferences.
{{POSTAGE}} In checkout, the money-formatted total postage.
{{POSTAGE_ZONE_FORM}} In checkout, a form for choosing a postage zone.
{{PRICE}} The contents of the 'price' field of a catalogue item.
{{QUANTITY_FORM}} Displays a form for updating the quantity of a given item in the shopping cart.
{{REMOVE_FROM_CART}} Displays a button for removing a given item from the cart.
{{RETURN_LOCATION_ID}} The location id to which PayPal returns a user after succesful payment.
{{SUBTOTAL}} In 'checkout', the subtotal for a given item in the shopping cart.
{{TOTAL}} In checkout, the total value of an order.
{{TITLE}} The contents of the 'title' field of a catalogue item.
{{VAT_MESSAGE}} In checkout, a message explaining how much of the total cost represents VAT.
contacts.php
{{ADDED_PLACES_LIST_PLACES}} Finds places added by the current contact, and returns the javascript code for displaying them on a map.
{{ADDED_PLACES_LIST_UL}} Makes an unordered list of places added by the current contact.
{{ADDRESS}} Displays the processed postal address of a given contact, depending on the value of the 'address_display' field.
{{CANDY}} In listing view, replaced alternately by 'light' and 'dark'.
{{DESCRIPTION}} Displays the contents of the 'description' field of a given contact.
{{FAVOURITE_PLACES}} Where the favourites are places from the 'places' table, makes the javascript code for displaying them on a map.
{{FAVOURITES}} Displays a list of favourite items for a given contact.
{{JOB}} Displays the job title of a given contact.
{{LINK}} Use internally. Replaced by link to a given user's profile.
{{NAME}} Displays the processed name of a given contact.
{{PHONE}} Displays the phone number of a given contact, depending on the value of the 'phone_display' field.
{{QUANTITY}} In 'checkout', displays the quantity in the shopping cart of a given item.
{{RELATED_COURSES}} Displays a list of courses from the 'courses' table, where a given contact's contact id is in the 'tutors' CSV field.
{{RELATED_PROJECTS}} Displays a list of projects from the 'projects' table, where a given contact's contact id is in the 'participants_internal' CSV field.
{{RELATED_PUBLICATIONS}} Displays a list of publications from the 'publications' table, where a given contact's contact id is in the 'participants_internal' CSV field.
{{SIMPLE_CONTACT_LIST}} Displays a contact list as a simple unordered list, without using the behaviour templates.
{{WEBSITE}} Displays the web address of a given contact as a link, depending on the value of the 'website_display' field.