actions on file create from template
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 72
- Joined: Thu Mar 26, 2015 4:57 pm
actions on file create from template
Post by steve.cuzner »
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: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: actions on file create from template
Hi Steve,
If you look at how the XML looks like for a DITA new file template:
OXYGEN_INSTALL_DIR\frameworks\dita\templates\topic\Topic.dita
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:
https://www.oxygenxml.com/doc/versions/ ... ables.html
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:
https://github.com/oxygenxml/ExecuteAut ... OnSaveHook
Regards,
Radu
If you look at how the XML looks like for a DITA new file template:
OXYGEN_INSTALL_DIR\frameworks\dita\templates\topic\Topic.dita
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:
https://www.oxygenxml.com/doc/versions/ ... ables.html
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:
https://github.com/oxygenxml/ExecuteAut ... OnSaveHook
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service