Help needed to create a custom view

hymanshu
Posts: 10
Joined: Tue Oct 23, 2018 7:37 pm

Help needed to create a custom view

Post by hymanshu » Thu Aug 29, 2019 12:56 pm

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 201 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.

Radu
Posts: 6507
Joined: Fri Jul 09, 2004 5:18 pm

Re: Help needed to create a custom view

Post by Radu » Thu Aug 29, 2019 2:28 pm

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 » Thu Sep 19, 2019 11:27 am

Thanks, Radu. I am using XML Author 17.1 and don't see DITA Reusable Components. Is there a workaround?

Radu
Posts: 6507
Joined: Fri Jul 09, 2004 5:18 pm

Re: Help needed to create a custom view

Post by Radu » Thu Sep 19, 2019 1:19 pm

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 » Fri Sep 20, 2019 6:02 am

Thanks, Radu.

Post Reply