Template for new projects

Post here questions and problems related to oXygen frameworks/document types.
Patrik
Posts: 216
Location: Hamburg/Germany

Template for new projects

Fri Feb 24, 2017 10:13 am

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
Radu
Posts: 5088

Re: Template for new projects

Fri Feb 24, 2017 10:27 am

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Patrik
Posts: 216
Location: Hamburg/Germany

Re: Template for new projects

Fri Feb 24, 2017 10:58 am

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
Radu
Posts: 5088

Re: Template for new projects

Fri Feb 24, 2017 11:02 am

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

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

Who is online

Users browsing this forum: No registered users and 0 guests