When you reference reusable content using a @conref or
@conkeyref attribute, by default, the content is grayed out in the document
and can only be edited from the source document. To edit the source of the referenced content,
click the
icon at the beginning
of the inserted content. This will open the source document where you can edit the referenced
content.
@conref or @conkeyref) is selected, the following actions
are available in the DITA menu and the Reuse
submenu of the contextual menu:@conref or
@conkeyref attribute. It opens the Edit Content
Reference dialog box that allows you to edit the source location (or key)
and source element of a content reference (or content key reference), and the reference
details (@conref/@conkeyref and
@conrefend attributes). For more information, see Reuse Content Dialog Box.@conref or
@conkeyref) at the cursor position with its content from it source.
This action is useful if you want to make changes to the content in the currently edited
document without changing the referenced fragment in its source location. If the source
content includes references to other topics/resources (hrefs), the operation also
resolves those references relative to the new location. Attributes are preserved
according to the following priority:-dita-use-conref-target
value.@id attributes.@keyref, @conref,
or @conkeyref) in the current document with the content. Attributes
are preserved according to the following priority:-dita-use-conref-target value.@id attributes.For keyrefs inside <xref> or
<link> elements, the @keyref attribute is
changed to an @href attribute, while the rest of the content for the
keyref is replaced with its source content.
If the source content includes references to other topics/resources (hrefs), the operation also resolves those references relative to the new location.
@conref or @conkeyref)
inside the element at the cursor position.Oxygen XML Author Eclipse plugin includes a DITA refactoring operation called Convert conrefs to conkeyrefs that will find all content references (that reference content outside the current document) and convert them to content key references. You can also use it to quickly convert all content references in the current document or multiple documents at once.
To access the Convert conrefs to conkeyrefs operation, use one of the following methods:
XML Refactoring from the XML menu (or from
the Refactoring submenu when you right-click a document in the
Project Explorer
viewor the DITA Maps Manager view). Then select
Convert conrefs to conkeyrefs from the
DITA section and click Next.If you used the Single Document Method, the scope will be the current file so the scope and filtering options are not displayed.