[ xmlSE . how to . create a record template ] edit

Record templates control the appearance of category record pages. When you create a new category, you also need to create a record template and create an index template for each browser version of your site.

Record templates use the tags described in 'edit an html template '.

If you want to display who last edited the record, and when, you can access a record's 'last_edited' field with the data and if tags. To print the name of the person who last edited the record, use '<data field="last_edited.by" />'. The month, date and year in mm.dd.yyyy format is '<data field="last_edited.month" />.<data field="last_edited.day" />.<data field="last_edited.year" />'.

To display references to other records that mention this record, use the '<reference_category>...</reference_category>' and '<reference>...</reference>' tags.

The contents of the reference_category tags are repeated for each category of references. To display the name of the category, use '<data field="category" />' inside the reference_category tags.

The reference tags go inside the reference_category tags, and their contents are repeated for each reference in each category. The text of the reference, defined when you create a reference template, can be accessed using the '<data field="reference" />' tag.

last updated 2.28.2002 by administrator