Edit online

Creating New Document Templates

You can create your own custom document templates and attach them to a custom framework. Once the framework is uploaded, the document templates will be available when creating new documents.

To create your own custom document template, follow these steps:
  1. In Oxygen XML Editor/Author, create a new file and customize it to become a starting point for creating new files of this type.
    Tip: You can use editor variables in the template file content and they will be expanded when the files are opened. Also, see Customizing New Document Templates for other template customization tips (for example, you could add placeholders or hints to assist authors).
  2. Save the new template in a directory (for example, called templates) within your custom framework directory.
    Attention: The name that you use to save the template will be the name that appears in the new document wizard, including capitalization, space, and characters (for example, My Custom Template1.xml will appear in the new file wizard as My Custom Template1). You can also configure the displayed name in a properties file by following the procedure found in the Configuring the Displayed Names for Document Templates section.
  3. Open the Document Type configuration dialog box for that specific framework, go to the Templates tab, and click the button in the bottom-right corner to add your new directory to the list. It is recommended that the reference be made relative to the framework directory (for example, ${frameworkDir}/templates). Binding to an absolute file (e. g.: C:\some_dir\templates) makes the association difficult to share between users.
  4. Click OK for all of the dialog boxes to save your changes.
  5. Create an archive that only contains your custom framework folder and upload the changes to your framework to Web Author.

Result: The custom document template should now be available when creating new documents.