/
Creating, Saving, Publishing and Deleting content

Creating, Saving, Publishing and Deleting content

Creating

In Strapi, writing content consists in filling up fields, which are meant to contain specific content (e.g. text, numbers, media etc.). These fields were configured for the collection or single type beforehand, through the Content-Types Builder.

To add a new entry and display its combination of fields:

  1. Click on the Add new entry button.

  2. Fill in the fields of the component.

Translating content

With the Internationalization plugin installed, it is possible to manage content in more than one language, called "locale".

An Internationalization box, displayed in the right side of the interface, from where it is possible to switch locales.

Icons displayed next to every field to indicate whether the field can be translated or not:

  • - indicates that the field can be translated;

  • - indicates that the field cannot be translated: its content is the same for every locale (i.e. changing the value of a non-localizable field changes it for all other locales).

To translate content in another locale:

  1. Access the edit view of your collection or single type.

  2. In the Internationalization box, click on the Locales drop-down list.

  3. Choose the locale in which you want to translate your content.

  4. Translate your content by filling up your content-type's fields

 

Saving, publishing and deleting content

Your contents can have 2 statuses: draft or published. You can see the current status indicated on the right of the interface, below the Information box.

By default, each newly created content is a draft. Drafts can be modified and saved at will, using the Save button on the top right corner of the edit view, until they are ready to be published.

Publishing a draft

To publish a draft, click on the Publish button in the top right corner of the content editor.

When a content is not a draft anymore, but has been published, it is indicated on the right of the interface, below the Information box.

Unpublished content

Published contents can be unpublished, switching back to being drafts again.

To unpublish content, click on the Unpublish button in the top right corner of the content editor.

Deleting content

You can delete content by deleting any entry of a collection type, or the default entry of a single type.

  1. In the edit view of the entry, click on the Delete this entry button, located at the bottom of the right side of the interface.

  2. In the window that pops up, click on the Yes, confirm button to confirm the deletion.

You can delete entries from the list view of a collection type, by clicking on the trash button  on the right side of the entry's record in the table.
You also have the possibility to delete multiple entries at the same time. To do so, select your entries to delete by ticking the box on the left side of the entries' record. Then, click on Delete selected  located right below the header of the table.

If the Internationalization plugin is installed, entries can only be deleted one locale at the time.