Page 1 of 1

Help needed to create a custom view

Posted: Thu Aug 29, 2019 12:56 pm
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
image.png (9.39 KiB) Viewed 1190 times
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.

Re: Help needed to create a custom view

Posted: Thu Aug 29, 2019 2:28 pm
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

Re: Help needed to create a custom view

Posted: Thu Sep 19, 2019 11:27 am
by hymanshu
Thanks, Radu. I am using XML Author 17.1 and don't see DITA Reusable Components. Is there a workaround?

Re: Help needed to create a custom view

Posted: Thu Sep 19, 2019 1:19 pm
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

Re: Help needed to create a custom view

Posted: Fri Sep 20, 2019 6:02 am
by hymanshu
Thanks, Radu.