Create and edit content types

Overview

When different content types are used, each can include its own set of fields. For example, one content type might have the fields Name and Description, while another could use Name and Image.

Content types can be organized in a hierarchical structure. Each type may serve as a parent for multiple other content types.

EXAMPLE: A content type, called Vacations, may contain a content type named Countries. The Countries content type could have child types such as Cities and Resorts. Cities could have children like Hotels, Restaurants, and Museums, while Resorts could include Bars and Beaches as child types.

Create a content type

To create a content type, perform the following:

  1. In Sitefinity backend, expand Administration, located in the right of the toolbar.
  2. Click Content types.
    The Content types page appears, listing all created content types.

    NOTE: Only types that have associated fields and are published appear under the Content tab.

  3. Click Create a content type.
  4. Enter a name for the content type.
    For example, Press releases.
  5. You can change the name used in the code to refer to this content type, by clicking Edit (Edit).
  6. If you want this content type to be subordinate to another content type, in Parent content type, click Add (Select content type).
    Click Show all content types, select a content type, and click Use selected.
  7. Click Continue.

RESULT: A draft of the content type is created and appears in the list of content types. Next, you must add the fields on the content type, using the Content model editor.
For more information, see Add fields to a content type.

Modify a content type

To modify an existing content type, perform the following:

  1. In Sitefinity backend, expand Administration, located in the right of the toolbar.
  2. Click Content types.
    The Content types page appears, listing all created content types.
  3. Find the content type that you want to edit and click it.
  4. Select one of the following:
    • To edit the fields of the content type, in the toolbar, select Fields.
      The Content model editor appears.
    • To edit the properties of the content type, in the toolbar, select Properties.
  5. When finished, click Publish.

NOTE: If you want to modify one of the predefined types - Pages or Templates, see Edit the model of pages and templates.

Delete a content type

IMPORTANT: When you delete a content type, you also delete all content items of this type. You cannot recover either the type or its content items.

To delete a content type, perform the following:

  1. In Sitefinity backend, expand Administration, located in the right of the toolbar.
  2. Click Content types.
    The Content types page appears, listing all created content types.
  3. Find the content type that you want to delete and expand its Actions menu.
  4. Click Delete and confirm your choice.

 

 

 

Was this article helpful?