Display Templates

When creating a content type, it is recommended that you create at least one single and one list display template for that type.

The Insert Template Field Insert Template Field Tool tool is available on the HTML Editor toolbar when you edit a single or list display template. Use the tool to insert fields that you want to display on the published Web page for individual or listed items of a given content type. If you do not insert a field, values for that field will not display.

The drop-down menu lists the following:

  • Standard or custom fields already configured for the Authoring Wizard Properties step of the content type - When you select a field to insert, a line like the following is inserted into the template source code:

  • <P><SPAN class=templateVariable

  • A Body field - If you select this option, the following line is inserted into the source code:

  • <t:value id=body>«body»</t:value>

    Note:

    Inserting the Body template field here is different from inserting Body Text using the headers menu, which inserts the line: <P class=templateBody>&nbsp;</P>

Example: Your company's Press Release content type has a category-backed field called Rating, with options such as Family, Teen, and Mature. Authors select a Rating whenever they create a Press Release item. You can choose to keep the field internal, using the Ratings to filter lists but not displaying the actual rating on the published page. You can create a content filter and apply it to a list of press releases so that only those with a Family rating display in the Kids section of your Web site. If you want to display the rating of each Press Release to the public, use the Insert Template Field tool to insert the Rating field in the single or list display template for the Press Release content type.