Page 1 of 1

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

Posted: Tue Sep 21, 2021 2:54 pm
by agarwal2
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

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

Posted: Wed Sep 22, 2021 7:57 am
by Radu
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

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

Posted: Wed Sep 22, 2021 8:01 am
by agarwal2
Hello,

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

Regards
Palak