Skip to content

Strapi Collections

The Needs Assessment compiles global data on the needs of various groups across countries, regions, and subregions.

This data is modeled in Strapi as a set of collections, each representing specific aspects of the data.

These collections provide a structured data source that supports efficient querying and filtering in the frontend, allowing users to explore and display needs information by location, category, or other relevant attributes.

A collection is one of Strapi’s three content-types (formally called a collection type). It contains fields that define the data structure for that collection. Fields can be added when creating the collection or later during edits and updates.

To view a collection in Strapi:

  1. Ensure the Strapi Admin Panel is running in your browser.

  2. Select the Content Manager icon from the navigation menu (see Figure 1). A list of available collections will appear.

Content Manager icon in the Strapi navigation menu Figure 1. Strapi Content Manager icon in the navigation menu.

  1. Click the name of the collection you want to view (for example, Product.Category)

  2. The main panel should now display the collection title and a table showing several of its fields. If entries exist, they’ll appear as rows in the table.

  3. To view or customize the displayed fields, select the View settings toggle above the top-right corner of the table (see Figure 2).

View settings toggle Figure 2. View settings toggle.

  • In this panel, you can:
    • Choose which fields to display
    • Reset the default view
    • Configure the display order of fields

Strapi automatically creates and populates the following fields in every collection:

  • id
  • createdAt
  • createdBy
  • documentId
  • updatedAt
  • updatedBy

Other fields (such as name) are determined by the data requirements specific to each collection and are added manually during collection creation or during updates.

Some collections also contain auto-populated fields configured during setup. For details about these specific fields, see the field types documentation.

For more information on Strapi content-types, including the collection type, and creating content-types manually, see these Strapi docs.

NOTE: All current Strapi collections related to Needs Assessment have been created manually. They were not generated using Strapi’s AI features.

Most Strapi collection names follow a two-level naming structure that reflects both the core concept (parent/umbrella category) and a specific aspect within that category (subcomponent).

<CoreConcept>.<SpecificAspect>

  • CoreConcept - Represents the parent or umbrella category (e.g. Product, Geo, NeedsAssessment).
  • SpecificAspect - Distinct subcomponent within that category.
Collection NameCore ConceptSpecific AspectDescription
Product.CategoryProductCategoryList of product categories.
Product.ItemProductItemList of product items.
NeedsAssessment.SurveyNeedsAssessmentSurveySurveys for the needs assessment.
NeedsAssessment.NeedNeedsAssessmentNeedCollected needs from previous assessments.

This convention ensures clear organization, consistent naming, and easier navigation of collections across the Strapi admin and codebase. It supports scalability as new aspects are added under existing core parent categories.