This document explains how to create a custom template in MindTouch. Custom templates can save you time and help you create uniform pages. Note that MindTouch has pre-existing templates that you may use.
Creating a Template
A template is a MindTouch page or part of a page that you can copy in to your MindTouch page. You can create three kinds of templates:
DefaultDefault templates are those which are available for reuse in MindTouch though are uncategorized. Usually content templates are used to contain content that is included in other templates once you start getting sophisticated with your content creation. All newly created templates are set to "Default".
New PageYou can choose New Page templates from the window that appears when you click New Page. You might use a template like this so you can set out the structure for a page. For example, you might create a New Page template called Glossary Term that contains an H1 that says "Put term here" followed by an italicized paragraph that says "Put definition here." When a person creates a page using the Glossary Term New Page template, the H1 and paragraph appear and the user can replace the template text with their own text.
ContentYou can insert Content templates into the body of any page by using the Template button on the Editor toolbar. You might use a template like this so you can insert a commonly used piece of information without having to retype it in each page. For example, you might create a Content template that contains a formatted note. You can use the template to insert the note into any page and then change the text of the note as appropriate.
IMPORTANT - Using a template inserts a copy of the template into your page. Changes that you make to the template later are not reflected in the page where you inserted it.
Use the following steps to create a template:
- Click the Tools menu located on the top Navigation bar.
- Select Templates from the menu that appears.
A list of all of your templates appears.
- Click New Page on the Menu Navigation.
Define Your Template
- Name your template.
NOTE: You MUST keep Template: at the beginning of the name.
- Add content. You can include text, formatting, links, images, and anything else you include in a normal MindTouch page.
- Click Save.
Edit Template Properties
- Select Templates from the Tools menu to return to your template list.
- Locate the template you just saved.
- Click Edit Details.
Complete the Update template properties window that appears:
- Title - Change the name of the template.
- Description - Add a description to the template.
- Type - Select the template Type. Valid values include:
- Default - Templates that are usually used to contain content that is referenced by other templates.
- New Page - Templates that appear on the New Page window that appears when you click New Page.
- Content - Templates you can insert in a page by using the Template button on the toolbar.
- Click Update template properties.
Note: If you selected New Page for the template type, it will take about 1 minute for it to show in the New Page dialog, as it needs to be indexed first.
Here is a video on how to create your own templates:
Supported Template Types
|Template Type|| |
|Content templates are intended for reusing page formatting through standard editor functions. While it is possible to add DekiScript to content templates, support for DekiScript is available starting at Level 2. || |
|Branding templates are used for targeting sections of the skin to apply customizations including styling and custom objects. || |
|New Page||New Page templates are those templates which appear in the New Page gallery when creating pages. While it is possible to edit the template details for custom templates, details for the following New Page templates are overwritten with each weekly MindTouch update. |
|Functional templates are system required templates utilized for IDF, LightSpeed framework, F1, various integrations and the main engine that drives MindTouch TCS and MindTouch 4. Customizations for these templates are not supported, and may be overwritten by regular release updates. |
All functional templates exist under /Template:MindTouch. Customizing or modifying Functional Templates is not supported. Below is a list of the main sub-sections: