Presentation Template Editor

A presentation template defines how a content item is formatted and displayed when it is published. Users fill out a data entry template to create a content item, but when the content item is previewed or published, a presentation template formats that content item for display.

Producers and above can create and edit presentation templates and attach them to an associated data entry template.  

The Presentation Template Editor includes the Properties fields described in the below table.

Important: If the fields in the Properties section do not display, click to the left of Properties. To hide the Properties fields, click .

Field

Description

Name

The template name. This name does not have to match the associated data entry template.

Publishing Name

Used when you want to create or edit a publishable presentation template. The name you enter here, plus the .html extension becomes the file name that is created on the Web server when you publish the presentation template. This field only appears when you are creating a new presentation template.

Note: If you do not want to create a publishable presentation template, ignore this field and select a data entry template to attach to the presentation template. This field is then replaced by the Extension field.

Extension

The extension (file type) for the file that is created when the content item is published. You can use any extension that is valid for a basic text file (.html, .js, .jsp, .asp, .xml, .txt). If you do not enter an extension, the system uses .html.

Data Entry Template

The data entry template associated with the presentation template. Content items created with the selected data entry template are formatted using the current presentation template when they are published.

Note: Do not attach a data entry template if you are creating an independently publishable presentation template.

Publishable

Determines whether or not the presentation template can be used on its own to publish a content item as a Web page, or if it must be referenced by another presentation template. Select from:

  • Complete Page: The template can be used on its own to publish a content item as a Web page.

  • Page Component: The template can be used only as a component that is referenced by other presentation templates. Typical page component presentation templates include header or footer templates.

Exclude from Search

Prevents users from using the search feature to locate published content. Published content items created from the associated data entry template will not be indexed by the Search Service, preventing them from being returned in a search.

Related Items to Publish

If there are other content items that must be published when a content item created with this presentation template is published, specify them here. For example, when you publish a News article, you must also publish the Index to display the new article, so you would add the Index content item to the related items. The default presentation templates default to the correct settings.

  • To add a related item, click Add Item.
  • To delete items, select the items you want to delete, then click Remove.

Note: You cannot add related items to page components because page components are only published as part of a complete page.

Code

The programming logic for the template is contained in this text field. The text in the Code field can include any code that is valid for the file type specified in the Extension field. To reference Publisher objects, you must use Publisher (PCS) tags. You can enter code in a presentation template in two ways:

  • Enter it manually by typing or pasting in the Code field.

  • Upload an existing text-based file from your local drive.

The following buttons are available in the Code field:

Button

Description

Validate

Checks the syntax of any Publisher tags in the Code field.

Tag Helper

Opens the Tag Helper window.

Upload

Allows you to load a file created in an external editor.

Download

Allows you to externally save a file created in the Code field.


Related Topics:

  1. In the Publisher Administration portlet, click Publisher Explorer.
  2. Select New | Presentation Template.