Adding a keydef variable that reuses an existing element

Last Updated : Oct 23, 2015 |
Prolog information
Use this procedure for adding a keyref to your topics that reuses an existing element. This will be much less common than a direct keyref.
Before you begin
  • Create the key maps that define the key references and add the key(s).
  • If you are going to use any keyrefs that reuse existing elements, you must know the element the existing content is contained in.
  1. To use a keyref that reuses an existing element:
    1. Position the cursor where you want to add the variable, press Enter and add the appropriate element.
      ADDITIONAL INFORMATION:
      The element you should insert depends on the element you’re reusing that has the keyref applied. For example, if the keyref is based on a <uicontrol> element, you should select uicontrol.
    2. Put the cursor in the element and press Ctrl+D to open the Modify Attributes dialog box.
    3. In the conkeyref field, enter the name of the key that was applied to the element you’re reusing, followed by a slash, followed by the ID of the element.
      ADDITIONAL INFORMATION:
      For example, if you want to reuse an element that has keyref of APPLICATIONNAME and an id of Portal, you would insert APPLICATIONNAME/PORTAL.
      When you assign IDs to elements in topic, they’re converted to all caps when they’re checked in. So it’s important to double-check the ID of the element to make sure you enter it correctly in the conkeyref field.
    4. Click OK.
  2. Check in the topic.