[ xmlSE . how to . add a new field to a category ] edit
To add a new field to a category, go to the configure site page.
Fields that have no attributes or subfields will have a multi-line text box input. If a field has attributes, defined by entering a list of attribute names separated by a space in the 'attributes' field, it will have a subfield with a single line text input for each attribute, but no multi-line text input. If a field has a subfield, it can still have attributes, but it will not have a multi-line text input.
To create a new top-level field, follow the 'new field' link next to the category you want to add a field to. To add a subfield to an existing field, follow the 'new child field' link next to the field you want to add a subfield to. But be careful, because if a field has a multi-line text input, and you add a subfield to it, it will no longer have a multi-line text input, and any data that has been entered in records in that field will be lost. To add a single-line text input subfield to an existing field, follow the 'edit' link next to that field and add a new attribute to the field, separated by a space from any existing attributes. Again, if the field you add an attribute to had a multi-line text input, it will be lost.
All categories automatically have a title field if a title is defined when you create a new category, a 'record_number' field, a 'subcategory' field with 'name' and 'rank' subfields, and a 'last_edited' field with 'month', 'day', 'year' and 'by' subfields. The title field and 'subcategory' field will be visible when you edit a record. The 'record_number' field is automatically assigned a value when you create a new record, and the filename of the page created for a record corresponds to its record number, for example if a person's record number is 'person2', then the filename of the page generated from their record will be 'person2.html'. The 'last_edited' field is automatically updated every time you edit a record, and stores the month, day, year, and name of the person who edited the record.
last updated 3.5.2002 by administrator