actions on file create from template

Post here questions and problems related to oXygen frameworks/document types.
Posts: 70

actions on file create from template

Sat Jan 20, 2018 1:19 am

Is there a way to cause a custom action to execute after a new document is created from a template (file->New)? I would like to execute the docbook generate.ids action to execute so that a new document has all IDs populated.
Posts: 5996

Re: actions on file create from template

Mon Jan 22, 2018 10:16 am

Hi Steve,

If you look at how the XML looks like for a DITA new file template:


it uses the Oxygen ${id} editor variable. All editor variables in new file templates are automatically expanded when the template is used to create a new file.
All editor variables are listed here:

If you need more complex stuff, there is a GitHub sample plugin which executes Author actions to change the document before the document is saved:

Radu Coravu
<oXygen/> XML Editor

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests