Add new content and media items

With the setup complete, it's time to create your own content and media items. In the context of our fun family recipes website, these items will be used for the new event page and talks details pages.

Create the content types

The content model used in this example scenario includes three content types specific to events. To create a content type, in Content Hub ONE, on the menu bar, click Content model > Content types and then click + Create content type.

Important

Be sure to adhere to the naming conventions shown, including capitalization, so that scripts work properly. The code used in this tutorial uses the IDs created by default.

Upload the media assets

Next, upload the media assets required for the new content. To upload media assets, in Content Hub ONE, on the menu bar, click Media and then click Upload media.

Note

The starter kit does not include these media assets. You can use any images you have that are appropriate for this tutorial.

Image type

Description

Profile photo

Photo for speaker 1.

Profile photo

Photo for speaker 2.

Profile photo

Photo for speaker 3.

Event image

Image representing the event, for the event page.

Talk image

Image representing the first talk, for the talk teaser and details page.

Talk image

Image representing the second talk, for the talk teaser and details page.

Uploading media creates media items with the DRAFT status. To make these items publicly available, you must publish them. To do this, using the command line, navigate to the root of the repository folder and run the command node publish.

Create the content items

When you create content, it is best to start with content items that do not reference any other content types or items. For this reason, first create the content representing the event speakers. To create a content item, in Content Hub ONE, on the menu bar, click Content and then click + Create content item.

Do you have some feedback for us?

If you have suggestions for improving this article,