Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

HomeDev GuideRecipesAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Create content

Create and publish content in Optimizely CMS, then configure it as the starting point for your application so it can be fetched using the SDK.

Create content in Optimizely CMS and prepare it for retrieval using the SDK. Complete these steps before fetching content in your application.

Prerequisites

  • You have access to an Optimizely CMS (SaaS) instance.
  • You have already defined and synchronized the Article content type.
  • You have sufficient permissions to create content and applications.

1. Create a home content item

Create a content item that acts as the entry point for your application.

  1. Go to CMS and select Create content.

  2. In the Create content dialog:

    1. Enter Home as the name.

    2. Select Article as the content type.

  3. Add sample content to the fields.

  4. Select Publish, then select Publish content.

The Home content item is now available in the CMS.

2. Create an application

Create an application to define the start page for your site or experience.

  1. Go to Settings > Applications.

  2. Select Create application.

  3. Enter an Application name (for example, my-app).

    1. The API ID is generated automatically.
  4. Under Choose Start page, select From existing, then select Home.

  5. Select Create application.

The application is now associated with the Home content item.

3. Update the Home URL

Remove the URL segment from the Home content item so it resolves as the root path.

  1. Go to Content > Home.
  2. Scroll to Name in URL and select Change.
  3. Clear the field so it is empty.
  4. Select Publish, then select Publish content.

The Home content item now resolves to the root URL of the application.

Next steps

You are now ready to fetch content from the CMS using the SDK. Continue to the next guide to retrieve and render content in your application.