Distributing a new set of document templates

Oxygen general issues.
maglid
Posts: 75
Joined: Mon Sep 28, 2009 8:10 am

Distributing a new set of document templates

Post by maglid »

I have a set of DITA template files that have a custom doctype. If I manually add the template folder using Options > Preferences > Editor > Templates > Document Templates, they appear in the New dialog box.

Is there a way to distribute this template setup to authors without them having to manually add the new template folder from Options etc? For example, so they can copy the template folder and a framework config file (for example), and then open Oxygen and just have it work?

Thanks,
Mark
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Distributing a new set of document templates

Post by Radu »

Hi Mark,

Maybe the most elegant way would be to extend the DITA framework. I wrote a blog post about this a couple of days ago:

http://blog.oxygenxml.com/2015/08/docum ... aring.html

After step 4 in the blog post you can create a folder called for example template_folders in your framework extension's folder, something like custom_frameworks/template_folders which will hold all new file templates.
Then in your framework extension configuration dialog in the Templates tab add a reference to that folder.

As a side note, in Oxygen 17.1 (which will probably be released in Autumn this year) if your DITA Open Toolkit plugin which contains the DTD specialization will also contain a template_folders directory in it, Oxygen will automatically pick up new file templates from that folder and present them in the File->New wizard.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply