Edit online

Customizing New Document Templates for a Framework

You can create your own custom document templates and attach them to a custom framework. You can then share the custom framework so that all users will have access to the templates in the New document wizard.

To create your own custom document template and have it appear in the new document wizard, follow these steps:
  1. 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 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 Configure 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. To test the template, open the new document wizard (New toolbar button or File > New) and you should see your custom template in the folder for your custom framework (in the Framework templates section).