文書型 > Document Type Configuration (.dcf) > Specifying Link Source and Target Elements
  
Specifying Link Source and Target Elements
You can configure elements as link source and target tags in the document type's .dcf file. A link source is the location within the current document that references a link target. A link target is the destination of a link source. It can be a location within the current document or a URL.
The Arbortext EditorLink and Link Target options on the Insert menu, and their corresponding toolbar buttons, use the link and target elements specified in the .dcf file.
* 
You can also configure link source and target elements in Arbortext Styler. If you are using an Arbortext Styler stylesheet, you must define the elements as a link or link target style in Arbortext Styler.
To specify link source and target elements in the .dcf file:
1. Open Arbortext Architect, and choose File > Open.
2. Locate the directory in which the document type whose .dcf file you want to modify is saved, and click Select.
3. 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.
4. Locate the Specials element in the DCF Editor. If the file doesn't include a Specials 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 Specials element.
5. Place your cursor next to the Specials element, choose Insert > Markup, and then choose Link.
6. Click next to the Link 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.
7. In the element field, select the element that you want to configure as a Link source.
8. Choose yes in the primary field if you want the selected element to be the primary link element. The primary link element is the element that is inserted when users select Insert > Link in Arbortext Editor. The default setting is no.
If there are multiple elements with primary set to yes, then the last element in the list is considered the primary link element. If no element has primary set to yes, then the first element in the list is considered the primary link element.
9. If you want to create links to a Web site, type the name of a CDATA attribute in the uri field. This attribute will hold the URL of a Web target.
10. If you want to create links within documents, type the name of an attribute in the idref field. This attribute will hold the target ID.
11. Click OK.
12. To create a link target, place your cursor next to the Specials element, choose Insert > Markup, and then choose Target.
13. Click next to the Target element to open the Modify Attributes dialog box.
14. In the element field, type the name of the element whose content will serve as the link target.
15. Choose yes in the primary field if you want this element to be the primary target element. The default setting is no.
If there are multiple elements with primary set to yes, then the last element in the list is considered the primary target element. If no element has primary set to yes, then the first element in the list is considered the primary target element.
16. In the id field, type the name of an attribute that will hold the name of the link target. The default value is id.
17. Click OK.
18. Choose File > Save to save the changes you have made to the .dcf file.