Oxygen XML Author Eclipse plugin allows you to customize certain aspects of built-in or custom document templates. For example, you can customize the icons or specify a prefix/suffix that will be used for the proposed file name in the New from templates wizard.
type=general
smallIcon=../icons/Article_16.png
bigIcon=../icons/Article_48.pngtype property must be set to dita.
Otherwise, the template will not appear in the dialog box for creating new DITA
topics from the DITA Maps
Manager. For all other types of files, set it to
general. The icons specified in this properties file will only be used
for the new file wizards and not in any other part of the interface.
New button on the toolbar (or ). The prefix or suffix is added to the name of the file in the
File field.If you create a new properties file, use the same name as the template file except with a .properties extension (for example, MyTemplate.properties). This properties file specifies the prefix/suffix that will be used to propose the file name in the new file wizards.
type=general
filenamePrefix=prod_
filenameSuffix=_testtype property must be set to dita. For all other
types of files, set it to general.filenamePrefix and
filenameSuffix properties can also have editor variables that do not require user interaction
(i.e. editor variables that have ${ask()} and ${answer()}
as values cannot be used).displayName property in the properties
file:displayName=My Template NamedisplayName=${i18n(tag)}where tag refers to an entry in the translation.xml file for that specific framework (for example, OXYGEN_INSTALL_DIR/frameworks/dita/i18n/translation.xml for DITA).
If a document template contains empty elements, it may not be clear to the Author what should be inserted in them. You can define placeholders in document templates that provide hints for Authors to help them understand what type of content should be added in any particular empty element within the document. The placeholder text is specified using a processing instruction and the placeholders are removed when the Author inserts content in the corresponding element.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="pi">
<title><?oxy-placeholder content="Enter a title"?></title>
<shortdesc><?oxy-placeholder content="Writing short descriptions
induces the writer to clarify the main thesis of the topic.
We recommended a 50 word limit."?></shortdesc>
<body>
<p><?oxy-placeholder content="A paragraph element should be a self-contained
unit dealing with one idea or point."?></p>
</body>
</topic>To see a visual demonstration of how to customize document templates and to get more ideas for other advanced customization possibilities, watch our Webinar: Working with DITA in Oxygen - Customizing the Editing Experience.