DITA New Topics PreferencesEdit online
To access the DITA New Topics preferences page, open the Preferences dialog box and go to . This preferences page includes the following options:
- Use the title to generate the file name
- This option (and its sub-options) pertain to the rules that will be used to generate
file names in the New DITA File dialog
box. Select this option to use the text entered in the
Title field to automatically generate a file name (the
generated name can be seen in the Save as field). By default, the
generated name will replace spaces with underscores (
_), all illegal characters will be removed, and all upper case characters changed to lower case, but you can use the sub-options to change this. - Use the file name as the value of the root ID attribute
- If selected, when creating a new topic, the file name (as seen in the Save
as field but without the file extension) will be used as the value of the
root
@idattribute for the new topic. - Use the file name as the value of the "keys" attribute for topic references
- If selected, when inserting a topic reference into a map, the file name will be used
as the value of the
@keysattribute for the new<topicref>. This option has a slightly different effect depending on the method used for inserting the topic reference:- Drag/Drop or Copy/Paste in the DITA Maps Manager - If you drag or copy a
resource from another view (or outside Oxygen XML Editor) and drop or paste it
into the DITA Maps Manager and a key is already defined for
that resource, a
@keyrefattribute will be inserted instead. This even works for two consecutive drag/drop or copy/paste operations without saving the file and it works for multiple selections of topic references. - Drag/Drop or Copy/Paste in a Map opened in Author Mode - If you drag or
copy a resource from another view (or outside Oxygen XML Editor) and drop or
paste it into a map that is open in Author mode, and a key is
already defined for that resource, a
@keyrefattribute will be inserted instead.Restriction: In this particular scenario, if you perform two identical, consecutive drag/drop or copy/paste operations without saving the file between operations, the value of the@keysattribute will be the same for both inserted topic references. The workaround for this limitation is to simply save the map after each drag/drop or copy/paste operation. - Using the Fast Create Topics or Duplicate Actions - If you use the Fast Create Topics
feature or Duplicate action to insert topic references, the
newly created
<topicref>elements will contain the@keysattribute with its value set depending on the file name. - Using the Insert Topic Reference Dialog Box from the
DITA Maps Manager - If you use an action in the DITA Maps
Manager to insert topic references (e.g. ), a
@keysattribute will be set for each inserted topic reference and the value depends on the file name. If a single target was selected, you can see the value in the Define keys field from the Keys tab of the Insert Reference dialog box and you can change it, while if multiple targets were selected, the values are automatically generated based on each file name when the insertion is performed, and you cannot see or change the values in that dialog box.
Note: This option also has an effect on image references. When inserting a reference to an image in a DITA map and this option is selected, a<keydef>element is created if it is allowed by the schema. If it is not allowed (or this option is deselected), a specific topic reference element is created with the value of the@processing-roleattribute set to resource-only. - Drag/Drop or Copy/Paste in the DITA Maps Manager - If you drag or copy a
resource from another view (or outside Oxygen XML Editor) and drop or paste it
into the DITA Maps Manager and a key is already defined for
that resource, a
Reference