Skip to main content

Content templates

Your publication's style guide may require that articles about product updates always include boilerplate text as follows:

  • Headlines start with the teaser Feature update:.
  • Bodies start with Introducing another Brightspot productivity booster:.

The editor covering product updates can start new articles by manually pasting the boilerplate text, or by copying a previous article and erasing the extraneous text. A better way is to use content templates. Using content templates, editors can pre-populate the content edit form with boilerplate text.

Content template for an article

Referring to the previous illustration, when an editor starts a new article to which a content template has been applied—

  1. Brightspot displays the content edit form for articles.
  2. The Headline field is therefore populated with the phrase Feature review:.
  3. The Subheadline field is therefore populated with the phrase Introducing another Brightspot productivity feature:.
  4. The Authors field is therefore populated with Adam Braun.

Using content templates provides two benefits:

  • Consistency—Your assets acquire a consistent wording that your visitors expect.
  • Productivity—Because Brightspot pre-populates the content edit form with template text, you spend less time typing and more time creating.

For more information on content templates, see Types of content templates and Organizing content templates. To begin creating content templates, see any of the following topics:

Types of content templates

The following sections describe the two types of content templates.

Default templates

Default templates replace an underlying content type. Referring to the following illustration, Lead Image for Sports is a default template for images. When editors start an image in the Brightspot site, Brightspot opens a content form for an Image and pre-populates the fields with values defined in the content template Lead Image for Sports. Because Lead Image for Sports is a default template, editors must use it when creating an image.

Default template in content edit form

Extra templates

These templates are variants of an underlying content type with a different name and with pre-populated fields. Referring to the following illustration, Announcement is an extra template based on Article. When editors start an announcement in the Brightspot site, Brightspot opens a content form for an article and pre-populates the fields with values defined in the content template Announcement. Because Announcement is an extra template, editors see both Announcement and Article in the Quick Start widget.

Extra template in content edit form

Organizing content templates

Brightspot organizes content templates using a hierarchy from the site, then role, and then user levels. When a user opens the dashboard, Brightspot examines the user's ID, role ID (if any), and the site the user is working on. Brightspot then looks for content templates matching those criteria, and adds them to the Quick Start widget. Below are some examples.

  • All editors working on the site Brightspot can write articles highlighting software features. Using a site-level content template, they can pre-populate their articles' headlines with an introductory phrase Feature review.

    Feature review template (applied at site level)

  • A special group of editors covers the company's annual user conference. For those articles, they use the role Reporter on the Brightspot site, and, using a role-level content template, pre-populate their articles' headlines with an introductory phrase Session summary.

    Session summary template (applied at site and role level)

  • Olivia is the only editor providing code samples on the developer site API Reference. For those articles, she uses a user-level content template to pre-populate her articles' headlines with an introductory phrase Code sample.

    Code sample template (applied at site level and user)

The following diagram illustrates the logic Brightspot uses to determine which content templates are available in the previous scenarios.

Content template hierarchy

These examples show how you can design content templates in a wide variety of combinations:

  • Any user working on a specific site.
  • Any user working in a specific role.
  • Any user working in a site-role combination.
  • A specific user working on a specific site.
  • A specific user working in a specific role.
  • A specific user working on any site or role.

Think about how your publications re-use text at different combinations of sites, roles, and users, and design content templates to pre-populate your assets accordingly.

Searching for content templates

You can search for content templates to more quickly find the one you want to view or modify.

To search for content templates:

  1. Click > Admin > Content Templates.

  2. Click at the top of the Content Templates widget.

    Search icon in Content Templates widget

  3. Enter the name of the content templates you are searching for in the Search field.

    As you begin adding letters, the search results are narrowed to those that match your criteria.

    Narrowing down the search results

  4. Click the name of the desired content template from the search results to view or edit that content template.

Creating a site-level content template

Site-level content templates are available to editors working on a specific site. When you create a new asset with this content template, Brightspot populates the fields with the text and values you set during this configuration.

To create a site-level content template:

  1. Click > Admin > Content Templates.

  2. Under Content Templates, click New Content Template.

    Creating a content template

  3. In the Name field, type a name for the content template.

  4. If you want the template to apply to specific sites, do the following:

    1. Under Sites, click .

    2. From the Sites list, select the sites with which you want to associate this content template.

    3. From the Set as default list, select one of the following:

      • Yes—The content template is the default for associated content types for the selected sites.

        Only one default content template should be set per site for a content type. If you specify a second default content template for the same content type (for a site), a warning is displayed. If you save the second default content template, it is ignored, and instead, the existing content template is used for that content type on that site.

        Duplicate default content template warning message

      • No—The content template is an extra for the selected sites.

        If you specify the same template as both the default and extra for the same content type on the same site, a warning message is displayed. To correct this issue, either delete the extra version of the same template, or specify another template as the extra template for this content type on this site.

        Content template warning

      For the difference between default and extra content templates, see Types of content templates.

    If you do not select any sites, the content template is not available until you associate it with a role or user. For details, see Creating a role-level content template and Creating a user-level content template.

  5. Expand the Template Preview Image field to upload an image of new content template. This image is used in the Content Templates widget to show editors what this template looks like.

    To avoid a preview image in the Content Templates widget, leave the Template Preview Image field set to None.

  6. Enter a description of this template in the Description field, such as the purpose of the template or when to use it. This description is displayed in the Content Templates widget.

  7. From the Template list, select the content type for which you want to create the content template.

  8. In the widgets and fields, enter text and values.

  9. Click Save.

When you create a new asset with this content template, Brightspot populates the fields with the text and values you set during this configuration.

Modifying a site-level content template

To modify a site-level content template:

  1. Click > Admin > Content Templates.
  2. Under Content Templates, select the content template you want to modify.
  3. Modify the content template as required. For an explanation of the available fields, see Creating a site-level content template.
  4. Click Save.

When you create a new asset with this content template, Brightspot populates the fields with the text and values you set during this configuration.

Archiving and deleting a site-level content template

When you archive or delete a site-level content template, it is no longer available to the roles and users that reference it.

Caution
  • When you archive a content template, you can later restore it; for details, see Restoring an archived asset.
  • Deleting a content template erases it completely; you cannot later restore the content template.

To archive and delete a site-level content template:

  1. Click > Admin > Content Templates.
  2. Under Content Templates, select the content template you want to archive.
  3. At the bottom of the widget, click Archive.
  4. In the confirmation prompt, click OK.
  5. To delete the content template permanently, in the editorial toolbar, click , and then click Delete Permanently.
  6. In the confirmation prompt, click OK.

Creating a role-level content template

You can associate existing content templates with a role. When an editor associated with the role creates a new asset based on the content type, Brightspot populates the content edit form with the corresponding content template’s text.

To create a role-level content template:

  1. Prepare a content template as described in Creating a site-level content template.

  2. If necessary, create a new role as described in Creating roles.

  3. Click > Admin > Users & Roles.

  4. Under Roles, select the role for which you want to create a content template.

  5. Expand CMS > Content Templates.

  6. Under Content Templates, click .

    Content template at the role level

  7. From the Content Template list, select a content template.

  8. If you want the role's template to apply to specific sites, do the following:

    1. From the Sites list, select the sites with which you want to associate this content template.

    2. From the Set as default list, select one of the following:

      • Yes—The role's content template is the default for associated content types for the selected sites.
      • No—The role's content template is an extra for the selected sites.

    If you do not select any sites, the role's content template becomes an extra template for all sites.

  9. Click Save.

When you create a new asset with this content template, Brightspot populates the fields with the text and values you set during this configuration.

Referring to the previous image—

  • The content template Feature Review is available to the role Reporter while working on the site Brightspot.
  • Feature Review is the default template for the content type Article.

Modifying a role-level content template

To modify a role-level content template:

  1. Click > Admin > Users & Roles.

  2. In the Roles widget, select the role for which you want to modify a content template.

  3. Expand CMS > Content Templates.

  4. Under Content Templates, expand the content template you want to modify.

    Content template at the role level

  5. Modify the template as required.

  6. Click Save.

Brightspot saves the changes to the content template. The changes apply to all users associated with this role. When you create a new asset with this content template, Brightspot populates the fields with the text and values you set during this configuration.

Deleting a role-level content template

When you delete a role-level content template, it is no longer available to the users working in that role.

To delete a role-level content template:

  1. Click > Admin > Users & Roles.
  2. In the Roles widget, select the role from which you want to delete a content template.
  3. Expand CMS > Content Templates.
  4. Click for the content template you want to delete.
  5. Click Save.

Creating a user-level content template

You can associate content templates with an individual user. When the user creates a new asset based on the content type, Brightspot populates the content edit form with the corresponding content template’s text.

To create a user-level content template:

  1. Create a content template.

  2. If necessary, create a new user as described in Creating a user.

  3. Click > Admin > Users & Roles.

  4. Under Users, select the user for which you want to create a content template.

  5. Expand CMS > Content Templates.

  6. Under Content Templates, click .

    Content template at the user level

  7. From the Content Template list, select a content template.

  8. If you want the user's template to apply to specific sites, do the following:

    1. From the Sites list, select the sites with which you want to associate this content template.

    2. From the Set as default list, select one of the following:

      • Yes—The user's content template is the default for associated content types for the selected sites.
      • No—The user's content template is an extra for the selected sites.

    If you do not select any sites, the user's content template becomes an extra template for all sites.

  9. Click Save.

When you create a new asset with this content template, Brightspot populates the fields with the text and values you set during this configuration.

Referring to the previous image—

  • The content template Code Sample is available to the user Olivia while working on the site Brightspot.
  • Code Sample is the default template for the content type Article.

Modifying a user-level content template

To modify a user-level content template:

  1. Click > Admin > Users & Roles.

  2. In the Users widget, click the user for which you want to modify content templates.

  3. Under CMS > Content Templates, expand the content template you want to modify.

    Content template at the user level

  4. Modify the template as required.

  5. Click Save.

When you create a new asset with this content template, Brightspot populates the fields with the text and values you set during this configuration.

Deleting a user-level content template

To delete a user-level content template:

  1. Click > Admin > Users & Roles.
  2. In the Users widget, click the user from which you want to delete a content template.
  3. Under CMS > Content Templates, click for the content template you want to delete.
  4. Click Save.

Bulk editing content templates

If multiple content templates exist for the same content type (such as article), you can bulk edit these content templates at one time.

To bulk edit multiple content templates:

  1. Click > Admin > Content Templates.

  2. Click in the Content Templates widget in the left navigation bar to open the content templates search panel.

    You can use the search filters to pare down the list to only those content templates you are looking for.

  3. Expand Template Type, in the Content Template Filters area, and select the content type associated with the content templates you want to edit.

    Note

    You must select a Template Type or you will not have the bulk edit options available for your selected content templates.

  4. Select the content templates you want to edit.

  5. Click in the upper-right corner of the search panel and select Bulk Edit.

    Select content templates and click Bulk Edit

  6. From the Bulk Edit pop-up, make any changes needed to the content templates selected. The fields available to change are based on the Template Type you chose.

    Caution

    Please note that any changes you make on the Bulk Edit pop-up will affect all of the content templates you selected on the search panel.

    In the image below, you can see three content templates had their sites replaced to all be available only on the Brightspot site, and these content templates have been made the default content template for articles on that site.

  7. Click Bulk Save.

    The Bulk Edit Status pop-up shows the results of your edits. If any failures occur, they are noted in this pop-up.

Tutorial: Setting site-level and user-level content templates

Introduction

You want to streamline the work for your editorial team, which consists of writers and one photographer. To save time for your writing team, you want to create a new content type for them called Story that has fields relevant to their use case, like a headline, a subheadline, a lead, a body field, and a tag field.

You then want to set up a site-level content template for the headline field that autopopulates with Feature Review: and one for the subheadline field that autopopulates with TL;DR:; however, you also want to streamline the operations for your photographer, so you set up a user-level content template for them for the out-of-the-box Image content type, specifically for the caption field, that says In this image:. This helps you enforce your style guidelines while also speeding up the photographer's work since a field is partially filled out for them.

Assumptions

  • You have access to the Admin area in Brightspot .
  • You have the Image content type available in your environment.

1. Create the Story content type

Create an editorial content type called Story for your team of writers. You will add a number of fields to it that your writers can use to meet your requirements.

  1. Click > Admin > Content Types.

  2. In the Name field, enter Story as a name for this content type.

  3. From the Sites list, select All Sites.

  4. In the Icon field, enter mono_stories. This value corresponds with an icon in Google's material icon library and automatically pulls it into Brightspot.

  5. Under Items, do the following:

    1. Click and select Text Field.

      1. Under Name, enter Headline.
      2. Under the Advanced cluster, toggle on Required.
    2. Click and select Text Field.

      1. Under Name, enter Subheadline.
    3. Click and select Reference Field.

      1. Under Name, enter Lead.
      2. Under Types, select Image.
    4. Click and select Rich Text Field.

      1. Under Name, enter Body.
    5. Click and select Reference Field.

      1. Under Name, enter Tag.
      2. Under Types, enter Tag.
  6. Click Save.

You have now created a content type called Story that your writers can use to create content. In the next step, you will create and apply a content template to it to save them time.

2. Create a site-level content template for the Story content type

Now that you have created the Story content type, you want to save editors additional time by creating a site-wide content template for it.

  1. Click > Admin > Content Templates.

  2. In the Name field, enter Story Template.

  3. Under Sites, click .

  4. From the Sites list, select All Sites. This means that the template is applied to all sites within Brightspot.

  5. Enter a description of this template in the Description field, such as the purpose of the template or when to use it.

  6. From the Template list, select Story to apply the content template to the content type you created in step 1 of this tutorial. Brightspot then lists the fields you created for the content type.

  7. Enter text that autopopulates the content edit page as follows:

    1. Headline:Feature review:
    2. Subheadline:TL;DR:
  8. Click Save.

You have now created a site-level content template called Story Template that your writers can use to create content. In the next step, you will verify that applying the Story Template content template autopopulates the content within the Story content type.

3. Verify that Story Template is working properly

Now that you have created the Story content type and the Story Template content template, you will verify whether it is working properly.

  1. In the header, click .
  2. From the Create list, select Story.
  3. Verify that the text in the Headline and Subheadline fields are autopopulated.

Now that you have verified that the content template is working, the next step is to create a content template for an existing content type that you will associate to an individual user.

4. Create a content template for the Image content type

Now that you have verified whether the Story content template is working properly, you will create a content template for the Image content type that your photographer can use. Since the Image content type is available out-of-the-box, you do not need to create it.

  1. Click > Admin > Content Templates.
  2. In the Name field, enter Image Template.
  3. Under Sites, click .
  4. From the Sites list, select All Sites. This means that the template is applied to all sites within Brightspot.
  5. Enter a description of this template in the Description field, such as the purpose of the template or when to use it.
  6. From the Template list, select Image. Brightspot then lists the fields for the content type.
  7. In the Caption field, type In this image:.
  8. Click Save.

Now that you have created an image template, you are going to use this template by applying it to your photographer user; however, first, you must create the photographer user.

5. Create a photographer user

Now that you have created an Image Template template, create a photographer user so that you can apply the template to your photographer.

  1. Click > Admin > Users & Roles.
  2. In the Users widget, click New Tool User.
  3. In the Name field, enter Photographer User.

Now you can assign Image Template to the newly created photographer user.

6. Assign Image Template to the photographer user

  1. Click > Admin > Users & Roles.
  2. Under Users, select the user to whom you want to assign the content template.
  3. Expand CMS > Content Templates.
  4. Under Content Templates, click .
  5. From the Content Template list, select Image Template.
  6. Click Save.

User_Template_Screenshot.png

Referring to the previous image—

  • The content template Image Template is applied to the Photographer User.

You have now associated Image Template to your photographer. In the next step, you will verify that Brightspot is properly applying the template to the user.

7. Verify that Image Template is working properly

Now that you have applied Image Template to the photographer user, you can verify whether Image Template is working properly.

  1. Impersonate the photographer user by doing the following:

    1. Click > Admin > Users & Roles.
    2. Search for and open the photographer user you created in step 5.
    3. Click > Impersonate This Tool User. Brightspot navigates you to the dashboard as the impersonated user.
  2. In the header, click .

  3. From the Create list, select Image.

  4. Verify that the text in the Caption field value is autopopulated with In this image: .

You now have verified that Image Template is being properly applied at a user level for the photographer user; however, you must now verify that the template is not being applied to the Image content type for anyone else.

  1. In the banner at the top of the screen, click Stop Impersonating. Brightspot navigates you to the dashboard as the user you are signed in as.
  2. In the header, click .
  3. From the Create list, select Image.
  4. Verify that the text in the Caption field value is not autopopulated with In this image:

You now have verified that Image Template is being properly applied at a user level for the photographer user, but not for any other user.

Conclusion

As a result of this tutorial, you now have a new content type called Story that will serve your writers and expedite their work since a content template that partially fills in two fields for them has been applied. Additionally, you have expedited the work of your photographer user since a content template that partially fills in one field for the Image content type has been individually applied to them. You have verified that this template applies only to the photographer's instance of the Image content edit page, and as such, you can enforce your style for the photographer, but not limit other users who may also need to create images.