Create a key definition
You can define a variable in a map as a key and then insert that key into any number of topics within the map.
Keys are useful for managing content consistency and for efficiency. For example, you can use keys to define names for products or product features. If names change over time, you don't need to edit all the topics that mention the product or feature. You only need to edit the key in the map that defines that product or feature name. Further, if you have two maps where the same key defines a name differently, topics with that key automatically update with the correct product or feature name for the related map.
The two most typical methods to define and add keys to your content are as follows:
- Define keys in a map, and then add them to the topics in that map.
- Define keys in a submap. From then on, you can reuse the submap by adding it to other maps with topics that require the keys you defined.
To create a key definition:
The map now contains the <keydef>
element with the values you defined.