Registering Templates to Content Items

Templates Tutorial : Registering Templates to Content Items

Overview

Developers may register and unregister templates to a specific content item for a given context.

Step by Step - Registering a Template to a Content Item

  1. Register the template to the item's content type for a given context. (See Associate a template with a content type.)

  2. Browse to the item details page of the desired content item. Click the "Publishing" tab, which contains a listing of templates registered to the content item and templates registered to the content type (see Figure 1).

  3. Under the "Templates Registered to Content Type" section, click the "Register template to this item" link next to the desired template. This will register the template to this content item for the given context. The desired template should now appear under the "Templates Registered to Content Item" section.

  4. 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 Item.

Step by Step - Unregistering a Template to a Content Item

  1. Browse to the item details page of the desired content item. Click the "Publishing" tab, which contains a listing of templates registered to the content item and templates registered to the content type (see Figure 1).

  2. Click the "Unregister" link next to the desired template under the "Templates Registered to Content Item" section to unregister the template from the content item. The template should only appear in the "Templates Registered to Content Type" section.