
Hi Pascal, So the user opens a topic in Oxygen using a custom protocol like: sdl://path/to/topic.dita Then the user calls the "Insert Image" toolbar action. I will assume that you have already added an URL chooser customizer (there is an example in the CustomWorkspaceAccess sample Java class): ReferencesCustomizer.addInputURLChooserCustomizer(InputURLChooserCustomizer) Then the user uses your custom "Browser CMS" action to browse the CMS and choose an image. Your action must return an absolute URL so you can return something like: sdl://GUID-1BA7EFB7-FE54-4643-8AEA-6A2E6A92BD85 Oxygen will try to make this URL relative to the URL of the opened topic, and will fail in this case because the image @href is actually an ID and not a path to a resource. Then indeed you could set a relative references resolver (like the example in the CustomWorkspaceAccess). which when receives a base URL like: sdl://path/to/topic.dita and a child URL like: sdl://GUID-1BA7EFB7-FE54-4643-8AEA-6A2E6A92BD85 actually returns GUID-1BA7EFB7-FE54-4643-8AEA-6A2E6A92BD85. This should probably work. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 2/8/2013 2:57 PM, Pascal Beutels wrote:
Then we probably need a RelativeReferenceResolver for our protocol when inserting e.g. images?
------------------------------
Message: 2 Date: Mon, 4 Feb 2013 08:25:33 -0000 From: "Pascal Beutels" <pbeutels@sdl.com> Subject: [oXygen-sdk] CMS integration: Resolving images To: <oxygen-sdk@oxygenxml.com> Message-ID:
<D7B7EA2108156F42BEC04DEF9C75D66301303CDC@emeamail0304.global.sdl.corp>
Content-Type: text/plain; charset="us-ascii"
Hi,
We are creating a plugin for oXygen (14.1) for our DITA based repository.
All the content is stored in our repository, also the images, ....
When e.g. a topic contains an image element, it only contains the unique identifier: <image href="GUID-1BA7EFB7-FE54-4643-8AEA-6A2E6A92BD85" placement="break">
What would be the best way to resolve this. Are there hooks foreseen in oXygen we can use? Does oXygen require that this image is on the file system (in other words does it expect a file path)?
The same for internal links and conrefs.
Kind regards,
Pascal Beutels