Help needed to create a custom view

Post here questions and problems related to editing and publishing DITA content.
hymanshu
Posts: 10
Joined: Tue Oct 23, 2018 7:37 pm

Help needed to create a custom view

Post by hymanshu »

I use a lot of conrefs and custom code templates. I'd like to create a custom view, something like the Elements view that lists the elements that I can add.
image.png
In the new view, I'd like to see the conref/custom code template I use and add them to the topic open in the editor with one click. Can I do this? Any help or pointers would be appreciated. Plz note that I can't develop extensions or plugins of O2. I don't have access to O2 SDK.
You do not have the required permissions to view the files attached to this post.
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: Help needed to create a custom view

Post by Radu »

Hi,

I will assume you are using Oxygen 21.1. We do have in Oxygen a side view called "DITA Reusable Components" (main menu Window->Show view) which should show all the reusable elements in your project:

https://www.oxygenxml.com/doc/versions/ ... -view.html

Oxygen can also be used to configure code templates which will later appear when pressing ENTER in the Author visual editing mode:

https://www.oxygenxml.com/doc/versions/ ... ting2.html

If you want to go ahead and implement a custom side view for Oxygen, our SDK is Java based and free. For example here you can find a sample Java plugin for Oxygen which adds a custom toolbar and a custom side view:

https://github.com/oxygenxml/sample-plu ... ace-access

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
hymanshu
Posts: 10
Joined: Tue Oct 23, 2018 7:37 pm

Re: Help needed to create a custom view

Post by hymanshu »

Thanks, Radu. I am using XML Author 17.1 and don't see DITA Reusable Components. Is there a workaround?
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: Help needed to create a custom view

Post by Radu »

Hi,

The only workaround I see for an Oxygen version on which this side view was not available would be to create your own side view and contribute it with a plugin.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
hymanshu
Posts: 10
Joined: Tue Oct 23, 2018 7:37 pm

Re: Help needed to create a custom view

Post by hymanshu »

Thanks, Radu.
Post Reply