How to create a new Button in oxygen and use it to insert the current date?

Post here questions and problems related to oXygen frameworks/document types.
agarwal2
Posts: 2
Joined: Tue Sep 21, 2021 2:43 pm

How to create a new Button in oxygen and use it to insert the current date?

Post by agarwal2 » Tue Sep 21, 2021 2:54 pm

Hello,

I am new to customizing the oxygen framework.
I have Oxygen 22.1 and would like to create a button in it.
The button will just insert the current date in the format YYYY-MM-DD HH:MM
there is no need to do any control about the type of topic, no control on the type of element.

How can i go about it?


Regards
Palak

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

Re: How to create a new Button in oxygen and use it to insert the current date?

Post by Radu » Wed Sep 22, 2021 7:57 am

Hi Palak,

What type of XML vocabulary are you editing? Is it DITA, DocBook, TEI or some custom XML vocabulary specific to your company?
Where do you want the button to appear? On the toolbar, in the menus or in the main editing area?
For example this blog post explains how you can create an Author action which can later be added to the toolbar, action which invokes an operation using editor variables to always insert the current date:

https://blog.oxygenxml.com/topics/custo ... etion.html

More about framework customizations:

https://blog.oxygenxml.com/topics/oxygenFrameworks.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

agarwal2
Posts: 2
Joined: Tue Sep 21, 2021 2:43 pm

Re: How to create a new Button in oxygen and use it to insert the current date?

Post by agarwal2 » Wed Sep 22, 2021 8:01 am

Hello,

we are using DITA..
Thanks for the suggestion.
i will refer to the link and try to implement.

Regards
Palak

Post Reply