Limit templates displayed in New Document Wizard
Oxygen general issues.
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: Limit templates displayed in New Document Wizard
Hello,
There are 3 types of templates presented in the dialog:
1. New document templates
2. Global file templates - located inside ${oxygenInstallDir}/templates
3. Framework defined templates - defined and located inside each framework
The first two types of templates can be filtered using a Component Validation Plugin Extension. This type of an extension provides a ComponentsValidator implementation that can filter the editor templates.
You can read more about how to create and configure an oXygen plugin here:
http://www.oxygenxml.com/doc/versions/1 ... lugin.html
http://www.oxygenxml.com/doc/versions/1 ... lugin.html
http://www.oxygenxml.com/doc/versions/1 ... lugin.html
We have such a sample plugin extension available in our SDK. The module of interest is named oxygen-sample-plugin-components-validator. I will also send you this plugin on your private email address with some instructions on how to make it work.
To filter the last type of templates (the "Framework templates" category) you should edit each Document Type and remove those templates that you don't want to be displayed in the New Document Wizard (from the Templates tab). As an alternative you can disable the frameworks that you don't use from "Options" -> "Preferences", on the "Document Type Association" options page. A disabled framework will not contribute its templates to the New dialog.
There are 3 types of templates presented in the dialog:
1. New document templates
2. Global file templates - located inside ${oxygenInstallDir}/templates
3. Framework defined templates - defined and located inside each framework
The first two types of templates can be filtered using a Component Validation Plugin Extension. This type of an extension provides a ComponentsValidator implementation that can filter the editor templates.
You can read more about how to create and configure an oXygen plugin here:
http://www.oxygenxml.com/doc/versions/1 ... lugin.html
http://www.oxygenxml.com/doc/versions/1 ... lugin.html
http://www.oxygenxml.com/doc/versions/1 ... lugin.html
We have such a sample plugin extension available in our SDK. The module of interest is named oxygen-sample-plugin-components-validator. I will also send you this plugin on your private email address with some instructions on how to make it work.
To filter the last type of templates (the "Framework templates" category) you should edit each Document Type and remove those templates that you don't want to be displayed in the New Document Wizard (from the Templates tab). As an alternative you can disable the frameworks that you don't use from "Options" -> "Preferences", on the "Document Type Association" options page. A disabled framework will not contribute its templates to the New dialog.
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
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