Embedding an Edit Link that will Launch Web AuthorEdit online
You can control or streamline your documentation review workflow by configuring Edit links that are either sent to reviewers or embedded in an email, web page, published output, or anywhere that you can provide a usable link. These Edit links will automatically launch a particular document in Oxygen XML Web Author. A reviewer then simply clicks the link and they will be redirected to the Oxygen XML Web Author editing page with that particular file open and editable.
URL Parameters
The Edit link can be created with a carefully built target and using URL parameters. The base URL for the link is the URL that you see in the browser when the Dashboard page is opened.
https://www.oxygenxml.com/oxygen-xml-web-author/
The base URL is then followed by parameters that contain the information about the file to open and the options used to load it.
- url - The OXY-URL that identifies the file to be opened.
- folderUrl - You can use this parameter to navigate to the Dashboard with the corresponding repository tab opened and the content of the specified folder displayed.
- author - The author name.
- autoSaveInterval - The interval of time (in seconds) to wait until an auto-save
is performed. If
<= 0orfalse, auto-save is disabled. - ccOnEnter - If set to
true, the content completion popup window is displayed when the user presses Enter. If set tofalse, the Enter key works similar to the behavior in normal word processors. - hideBreadcrumb - If set to
true, the breadcrumb will not be displayed in the interface. - lang - You can use this parameter to impose a specific language for the Oxygen XML Web Author interface. The possible values are:
en_US- Englishde_DE- Germanfr_FR- Frenchja_JP- Japanesenl_NL- Dutch
- spell.check.language - Specifies the default language used for spell checking in
the document. The value must be in either a 2-digit or 4-digit language code format (for
example,
enoren_US). - trackChanges - Flag that controls whether or not the editor should track changes.
The possible values are:
default- The status of change tracking is determined by the server's global options.enabled- Change tracking is enabled but the user can disable it using a toolbar action.forced- Change tracking is enabled and the user cannot disable it. The user can reject their own changes, but cannot accept or reject changes made by others.
default, the server change tracking status (as configured in the Administration Page) should not be "Stored in the document". For more information about this parameter, see Control Change Tracking State - ditamap - (DITA-specific Parameter) The OXY-URL of the DITA Map to use as a context for resolving keys.
- dita.val.url - (DITA-specific Parameter) The OXY-URL of a DITAVAL filter. It is used for resolving keys whose values depend on profiling conditions and it grays out content that is excluded by the DITAVAL filter.
- KeyscopeStack - (DITA-specific Parameter) Used for resolving keys when DITA 1.3
key scopes are defined in the DITA map. The value looks like
this:
a b c,d e f
for a DITA map that has the key scope defined like this:<topicref keyscope="a b c"><topicref keyscope="d e f"/></topicref>
- expandTopicRefs - (DITA-specific Parameter) If set to
true, when a DITA map is opened in Oxygen XML Web Author, the content of all topics referenced in the map will be presented. - contentType - For cases where Web Author cannot open a document that has an
unrecognized file extension, you can use this parameter as a loading option to pass a
specific file type so that client-side editing support can be used for editing the
document. You can also specify an encoding type. Examples for values:
image/pngapplication/xmlapplication/markdown;charset=utf-8
Example: OXY-URL for a Sample Deployment
http://www.example.com/web-author-component-integration/
http://www.example.com/web-author-component-integration/app/oxygen.html ?url=http%3A%2F%2Fwww.test.com%2Ftopics%2Ftopic.xml &ditamap=http%3A%2F%2Fwww.test.com%2Fmap.xml &author=John%20Doe
How to Embed the Edit Link in Published DITA Output (WebHelp or PDF)
Oxygen XML Editor/Author comes bundled with a built-in DITA-OT plugin that can be used to embed an Edit link in the WebHelp and PDF output for each topic.
- In Oxygen XML Editor/Author, edit a DITA Map WebHelp Responsive or DITA Map PDF transformation scenario and open the Parameters tab.
- Set values for the following parameters:
editlink.remote.ditamap.url- The custom OXY-URL of the DITA Map suitable for opening in Oxygen XML Web Author.editlink.web.author.url- The URL of the Web Author installation (for example:https://www.oxygenxml.com/oxygen-xml-web-author/).
- Run the transformation scenario.
Result: In the WebHelp or PDF output, all topics will have an Edit link to the right side of the title and clicking the link will launch that particular document in Oxygen XML Web Author.
How to Embed the Edit Link in Published PDF5 Output
- Add the following import
<xsl:include href="../../com.oxygenxml.editlink/pdf5.xsl"/>in the com.antennahouse.pdf5.ml/customization/dita2fo_custom.xsl file of the PDF5 plugin. - In the com.oxygenxml.editlink/plugin.xml file, uncomment the
lines that configure the parameters for the PDF5
plugin:
<feature extension="com.antennahouse.pdf5.ml.param" value="params.xml" type="file"/> <feature extension="com.antennahouse.pdf5.ml.saxon.param" value="params.xml" type="file"/> <feature extension="com.antennahouse.pdf5.ml.psmi.param" value="params.xml" type="file"/>
- In Oxygen XML Editor/Author, edit a DITA Map PDF5 transformation scenario and open the Parameters tab.
- Set values for the following parameters:
editlink.remote.ditamap.url- The custom OXY-URL of the DITA Map suitable for opening in Oxygen XML Web Author.editlink.web.author.url- The URL of the Web Author installation (for example:https://www.oxygenxml.com/oxygen-xml-web-author/).
- Run the transformation.
Result: In the PDF output, all topics will have an Edit link to the right side of the title and clicking the link will launch that particular document in Oxygen XML Web Author.