In This Topic
Create a New Custom Template
- On the Tools tab, click the Options button.
- In the editor, select the Custom Templates .
- Click the New toolbar button.
- In the New Template dialog:
- Select Topics \ Classic from the Base on combobox.
The custom template will initially contain all of the files & settings of the template selected in the Base on combobox (this also defines which template type the custom template will be).
- Enter New Topics Template for the Template Name.
- Click OK.
After creating a new custom template you need to assign it to the relevant template type in your Project's .
- Double-click on the Build Profile in the .
- Select the Template .
- Select your custom template from the relevant template type's Template combobox (in this example the "New Topics Template" for the Topics template type).
Create and Edit a Page Type
This example uses the custom template created in the example above, though this example can be applied to any custom template.
- On the Tools tab, click the Options button.
- In the editor click on the Custom Templates .
- Select the New Topics Template from the template list and click the Edit toolbar button.
- Select the Page Type .
- Click the New toolbar button.
- In the New Page Type dialog:
- Enter New Page Type.html for the New File Name.
- Select the Create a new Page Type derived from option.
- Select the "standard.html" Page Type from the combobox. ("standard.html is the default Page Type in the Topics template.
If you are creating a custom Template for another documentation type, e.g. .NET documentation, then you would choose the appropriate page type you want to use as the starting point for your new page type).
- Click OK.
- Select New Page Type.html in the Page Types list and click the Edit toolbar button.
A specific Page Type can be selected for a given Topic from the Page Type combobox in the Properties window after selecting the Topic in the .
Add a new Phrase
This example uses the custom template created in the example above, though this example can be applied to any custom template.
- On the Tools tab click the Options button.
- In the editor click on the Custom Templates .
- Select the New Topics Template from the template list and click the Edit toolbar button.
- Select the Phrases .
- Click the New toolbar button.
At this point a new Phrase named NEW_PHRASE will be created and selected for editing.
- Click the > button to the left of the Language label.
- Enter New Phrase English in the Language: (English (United States)) field.
- Enter New Phrase Dutch in the Language: (Dutch (Netherlands)) field.
Phrases can be inserted into a Page Type using the following DXMETADTA element:
<!--DXMETADATA start type="Phrase" name="NEW_PHRASE"--><!--DXMETADATA end-->
Document! X ships with nine localized languages for the included Phrases. New Languages can be added by clicking on the Add Language button.
Add a new Scrap
This example uses the custom template created in the example above, though this example can be applied to any custom template.
- On the Tools tab click the Options button.
- In the editor click on the Custom Templates .
- Select the New Topics Template from the template list and click the Edit toolbar button.
- Select the Scraps .
- Click the New toolbar button.
At this point a new Scrap named _NEW_SCRAP is created and selected for editing.
- In the Content section of the new Scrap enter New Scrap Content.
Scraps can be inserted into a Page Type using the following DXMETADTA element:
<!--DXMETADATA start type="Scrap" name="_NEW_SCRAP"--><!--DXMETADATA end-->