Using keydef variables in your topics

Last Updated : Sep 22, 2015 |

About this task

Use this procedure for adding keyrefs to your topics that have been defined in key maps using the keyword element. This procedure includes steps for setting up the keywords for reuse since you’ll be using the keyrefs multiple times across your content.

Before you begin

Create the key maps that define the key references.

Procedure

  1. Create a common topic to store the keywords that contain the keydefs.
  2. To set up common elements that use keyrefs directly defined in a map:
    1. Position the cursor where you want to add the variable, press Enter and select keyword.
    2. Put the cursor in the keyword element and press Ctrl+D to open the Modify Attributes dialog box.
    3. In the keyref field, enter the name of the key that you defined in the map.
    4. Insert a name in the ID field; you can use the same name as the keyref.
    5. Click OK.
    6. Repeat steps a through e for each keyword you need to set up for reuse.
    7. Check in the common topic.
  3. Reuse the keyword elements in any topics where you want to insert the key variables.

    If you’re inserting a variable in a bookmap or DITA map, you must check out the map in Arbortext Editor from the desktop repository.