Registering Templates to Content Types

Templates Tutorial : Registering Templates to Content Types

Overview

Developers may register and unregister templates to a specific content type for a given context. Additionally, developers may choose one template to be the default for a given content type/context.

Step by Step - Registering a Template to a Content Type

  1. Browse to the folder that contains the template that will be associated with a content type.

  2. Check the box under the "Mark" column next to the name of the desired template. The template should now appear in the clipboard.

  3. Browse to the content type with which the template will be associated. Click on the "Templates" tab to bring up a page listing templates that are registered to this content type (see Figure 1).


    Figure 1. Templates Associated with a Content Type.

  4. Click the "Register marked templates to this content type" link. This will bring up a page that contains a form for registering any marked templates to this content type, excluding those that have already been registered (see Figure 2).

    Click "Submit" to register all marked templates to the current content type. These templates should now appear as the registered templates for the current content type.


    Figure 2. Register a Template to a Content Type.

Step by Step - Unregistering a Template to a Content Type

  1. Browse to the content type with which the template will be disassociated. Click on the "Templates" tab to bring up a page listing templates that are registered to this content type (see Figure 1).

  2. Click the "Unregister" link next to the desired template to disassociate the template from the current content type. The template should no longer appear in the registered templates listing.

Step by Step - Setting a Default Template for a Content Type

  1. Browse to the content type for which a default template will be set. Click on the "Templates" tab to bring up a page listing templates that are registered to this content type (see Figure 1).

    Alternatively, browsing to a content item of the desired content type and clicking on the "Publishing" tab will show a listing of templates registered to the content item and templates registered to the content type.

  2. Click the "Make Default" link next to the desired template to distinguish a template as the default for that content type. The word "Default" should now appear next to that template (and no other templates with the same context).