Page 1 of 1

Template for new projects

Posted: Fri Feb 24, 2017 10:13 am
by Patrik
Hi,

in my DITA custom framework I have defined templates for different map and topic types. Now I'mwondering if there is already any mechanismn that allows me to define a template for creating a new project. This should include:
- an initial folder structure
- some initial files (e.g. bookmap.ditamap, notices.dita and keys.ditamap)
- possibly (but much less important) transformation scenarios on project level

Thanks and regards,
Patrik

Re: Template for new projects

Posted: Fri Feb 24, 2017 10:27 am
by Radu
Hi Patrik,

We had some plans to allow for new project templates but somehow we never got around to doing this. I will try to enhance the issue's priority.
Until then you can probably have a certain project folder in the frameworks folder and instruct people to manually copy it somewhere else and open the XPR from it in Oxygen.

Regards,
Radu

Re: Template for new projects

Posted: Fri Feb 24, 2017 10:58 am
by Patrik
Thanks, Radu.

A pure copying of a folder would require the author to also rename some files. In fact, it would be very simple to implement an XSLT script that creates an initial structure based on some minimal user inputs (like a project title and destination folder). I guess with a plugin I could privide a button for this, right? (So far I have only experience with document type extensions).

Thanks and regards,
Patrik

Re: Template for new projects

Posted: Fri Feb 24, 2017 11:02 am
by Radu
Hi Patrik,

Yes, right, a workspace access plugin extension can add a toolbar button. When the button is pressed you can do anything you want.
Our API is Java based, the SDK can be found here:

https://www.oxygenxml.com/oxygen_sdk.html

Regards,
Radu

Re: Template for new projects

Posted: Fri Nov 20, 2020 1:33 pm
by sorin_carbunaru
Hello,

Just wanted to update this thread and let you know that the recently released Oxygen 23 supports project templates. More info at https://www.oxygenxml.com/doc/versions/ ... ect-2.html.

All the best wishes,
Sorin Carbunaru
Oxygen XML Editor