Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.

Create an article template

Log in to subscribe to topics and get notified when content changes.

Create an article template

Create new article templates in addition to the pre-defined templates. Add new fields based on how you want to customize and display your content.

Before you begin

Role required: knowledge_admin or admin

About this task

For each new article template, a child table of the Knowledge [kb_knowledge] table is created. When you add a new field to the template, a new column is added to that table created for the template.

Procedure

  1. Navigate to Knowledge > Administration > Article Templates, and click New.
  2. Fill in the following fields:
    Field Description
    Name Name for the article template.
    Description Description for the article template.
    SEO Description Tag Article template field name. The content in this field is used as meta description tags to search for articles created using this article template.
    The Active check box is selected by default making the template available for use.
  3. Right-click the form header and click Save.
  4. In the Article Templates Field related list, add fields to the template.

    To add a field:

    1. Click New.
    2. Fill in the following fields as required:
      Name Description
      Field Name Title to display on the template form.
      Field Type Available field types:
      • HTML
      • String
      • Integer
      • Date
      • Date and time
      Order Position of the field in the article page view and the article edit view.
      Article Template (Read-only) Name of the article template associated with this field.
      Template Table (Read-only) Name of the table for this template.
      Template Field (Read-only) Name of the template column associated with this field.
      Mandatory If checked, this field is mandatory.
      Expand/Collapse Defines whether the template field displays as collapsed or expanded by default.
      Active If checked, this field displays in the template.
      Heading style CSS formats applied to the template header. For example, to display the background of the template header in red, with a 24-px font size, Arial font family, and white text color, enter the following code: background-color:red; font-size:24px; font-family:Arial; color:white;
      Field style CSS formats applied to the template fields. Any CSS format applied at the field level is automatically applied to the header if not already specified in the Heading style field. For example, to display the 300px page width, 25px solid green border, 25px padding, and 25px page margin, enter the following code: width:300px; border:25px solid green; padding:25px; margin:25px;
    3. Click Submit.
    The field is added to the template.
  5. Configure the article template form to display the fields that you added to the template.
    Note: You must have the admin role to configure the form layout. If the field is not available in the form layout, use the form designer to configure the fields.
    1. Navigate to Knowledge > Articles > Create New.
    2. Select the template in which you want to display the fields.
    3. Right-click the header and select Configure > Form Layout
    4. Select and move the required fields from the Available to the Selected list.
    5. Click Save.
    Note: Authors who started a session before a template was created or activated will see the newly added template upon their next login.

What to do next

If you want to search for duplicate articles when creating an article from a new template, you must configure the article template table for contextual search. On the Table Configuration form, the Search context field must be set to Knowledge ML Search. For more information, see Configure table for a contextual search.
Feedback