Document Types > Document Type Configuration (.dcf) > Setting Attributes as Read-Only
Setting Attributes as Read-Only
You can configure attributes in a document type's .dcf file so that they are displayed in Arbortext Editor, but cannot be modified. In this case, you can view the attribute in the Modify Attributes dialog box, the Document Map, and Column view, but you cannot change the value of the attribute.
To set attributes as read-only:
1. Open Arbortext Architect.
2. Choose File > Open.
3. Locate the directory in which the document type is saved, and click Select.
4. Once the document type is loaded, choose Edit > DCF. If the document type has a .dcf file, it displays in the Arbortext ArchitectDCF Editor window. If there is no .dcf file associated with this document type, Arbortext Architect automatically creates one.
5. Locate the AttributeOptions element in the DCF Editor. If the file doesn't include a AttributeOptions element, add one.
Open the Document Type Viewer (Tools > Document Type Viewer) to view the element hierarchy for the .dcf file. This will help you determine the valid location for the AttributeOptions element.
6. Place your cursor next to the AttributeOptions element, choose Insert > Markup, and then choose AttributeOption.
7. Click next to the AttributeOption element to open the Modify Attributes dialog box.
You must have the Force Required Attributes EntryEdit preference selected for this dialog box to open automatically.
8. Enter the name of the attribute that you want to set to read-only in the attribute field.
9. Choose yes in the readOnly field if you want to make the selected attribute read-only in Arbortext Editor. The default setting is no.
10. Click OK.
11. Choose File > Save to save the changes you have made to the .dcf file.