# Strapi Content Management

# Overview

This tutorial demonstrates how to create and manage the content in your Strapi instance from the App Builder user interface.

The Strapi Content Widget and Strapi Content List Widget enable the user to add or edit content and content lists, respectively. Note that it is mandatory to assign templates to selected content. The Strapi Content List Widget also allows content to be saved as a search. The following table compares widget capabilities.

Strapi Content Widget Strapi Content List Widget
User can select only one content User can select more than one content
User can select only one template per selected content User can select different templates for different content
There is no Save as Query feature The Save as Query feature allows the user to save multiple contents

# Prerequisites

# Strapi Content Widget

  1. Select a page or create a page in your Entando Application on which to place the Strapi Content Widget
  2. Go to App BuilderPagesManagement
  3. Find the Strapi content page in the page tree and click on the three dots representing the Actions icon
  4. Select Design from the drop-down
  5. Click on the Widgets tab in the right panel and expand the User section
  6. Drag and drop the Strapi Content Widget into an empty frame in the Page Designer to load the configuration page
  7. From the configuration page that loads from the Page Designer, click Add existing content

content_config-page.png

Note: If you have not yet created the content you wish to place in your Entando Application, click Add new content to be directed to the login for your Strapi dashboard. After creating the desired content, click Add existing content to resume content management.

  1. On the resultant page, select a collection type from the drop-down menu. These are returned by the Strapi API. Only one collection type can be selected.

content_collection-type.png

  1. Select from the content related to this collection type, which can be filtered by keyword using the Search field. Only one content can be selected.

content_type-populated.png

  1. Click Save, which will redirect you back to the configuration page
  2. Select a template from the drop-down menu, which calls the Strapi API to display only templates associated with the current content. Template selection is mandatory.

content_select-template.png

  1. Click Save, which will redirect you back to the Page Designer for the content page
  2. Click Publish
  3. Click View Published Page to see the data rendered on the content page

# Strapi Content List Widget

  1. Select a page or create a page in your Entando Application on which to place the Strapi Content List Widget
  2. Go to App BuilderPagesManagement
  3. Find the Strapi content list page in the page tree and click on the three dots representing the Actions icon
  4. Select Design from the drop-down
  5. Click on the Widgets tab in the right panel and expand the User section
  6. Drag and drop the Strapi Content List Widget into an empty frame in the Page Designer
  7. From the configuration page that loads from the Page Designer, click Add existing content

content-list_config-page.png

Note: If you have not yet created the content you wish to place in your Entando Application, click Add new content to be directed to the login for your Strapi dashboard. After creating the desired content, click Add existing content to resume content management.

  1. On the resultant page, select a collection type from the drop-down menu. These are returned by the Strapi API. Only one collection type can be selected.
  • To save all content related to this collection type as a query:

    1. Leaving the checkboxes unchecked, click Save as Query

    content-list_query.png

  • To save a list of one or more contents:

    1. Select from the content related to this collection type, which can be filtered by keyword using the Search field. Multiple contents can be selected via the checkboxes.

    content-list_type-populated.png

    1. Click Save as list of Contents, which will redirect you back to the configuration page
    2. For each content, select a template from the drop-down menu. Expanding the drop-down menu calls the Strapi API and displays only templates associated with the current content. Different templates can be selected for different content. Template selection is mandatory.

    content-list_select-template.png

  1. Click Save, which will redirect you back to the Page Designer for the content list page
  2. Click Publish
  3. Click View Published Page to see the data rendered on the content list page