引言 to the Content Manager

The Content Manager is a core plugin of Strapi. It is a feature that is always activated by default and cannot be deleted. It is accessible both when the application is in a development and production environment.

The Content Manager is divided into 2 categories, both displayed in the main navigation: Collection types and Single types. Each category contains the available collection and single content-types, which were created beforehand using the Content-Types Builder. From these 2 categories, administrators can create, manage, and publish content.

::: tip 💡 TIP 点击 search icon in the main navigation to use a text search and find one of your content types more quickly! :::

Collection types

The Collection types category of the Content Manager displays the list of available collection types which are directly accessible from the main navigation of the admin panel.

For each available collection type multiple entries can be created which is why each collection type is divided into 2 interfaces: the list view and the edit view (see Writing content).

The list view of a collection type displays all entries created for that collection type.

List view of a collection type in the Content Manager

From the list view, it is possible to:

  • make a textual search (1) or set filters (2) to find specific entries,
  • create a new entry (3),
  • configure the fields displayed in the table of the list view (4).

::: tip 💡 TIP Sorting can be enabled for any field displayed in the list view table (see Configuring the views of a content type). 点击 a field name, in the header of the table, to sort on that 字段 :::

Filtering entries

Right above the list view table, on the left side of the interface, a Filters button is displayed. It allows to set one or more condition-based filters, which add to one another (i.e. if you set several conditions, only the entries that match all the conditions will be displayed).

Filters in the Content Manager

To set a new filter:

  1. 点击 the Filters 按钮
  2. 点击 the 1st drop-down list to choose the field on which the condition will be applied.
  3. 点击 the 2nd drop-down list to choose the type of condition to apply.
  4. Enter the value of the condition in the 3rd box.
  5. (optional) 点击 the add button icon add new to add another condition-based filter.
  6. 点击 the Apply 按钮

::: tip 注意 When active, filters are displayed next to the Filters 按钮 They can be removed by clicking on the delete icon icon delete. :::

Creating a new entry

On the top right side of the list view interface, an Add New [collection type name] button is displayed. It allows to create a new entry for your collection type.

Clicking on the new entry button will redirect you to the edit view, where you will be able to write the content of the new entry (see Writing content).

::: warning IMPORTANT New entries are only considered created once some of their content has been written and saved once. Only then will the new entry be listed in the list view. :::

Configuring the table fields

Right above the list view table, on the right side of the interface, a settings button is displayed. It allows to access the configurations that can be set for the list view of your collection type (see Configuring the views of a content type), and to choose which fields to display in the table.

::: tip 注意 Configuring the displayed field of the table in the way detailed below is only temporary: the configurations will be reset as soon as the page is refreshed or when navigating the admin panel outside the Content Manager. For permanent configurations, 访问 Configuring the views of a content type. :::

Displayed fields in the settings of a list view in the Content Manager

To temporarily configure the fields displayed in the table:

  1. 点击 the settings button .
  2. In the Displayed Fields section, tick the boxes associated with the field you want to be displayed in the table.
  3. Untick the boxes associated with the fields you do not want to be displayed in the table.

::: tip 注意 Relational fields can also be displayed in the list view. Please refer to Configuring the views of a content type 了解详情 on their specificities.

:::

Single types

The Single types category of the Content Manager displays the list of available single types, which are directly accessible from the main navigation of the admin panel.

Unlike collection types which have multiple entries, single types are not created for multiple uses. In other words, there can only be one default entry per available single type. There is therefore no list view in the Single types category.

Clicking on a single type will directly redirect you to the edit view, where you will be able to write the content of your single type (see Writing content).

Single type in the Content Manager