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
Articlecontent 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.
-
Go to CMS and select Create content.
-
In the Create content dialog:
-
Enter Home as the name.
-
Select Article as the content type.
-
-
Add sample content to the fields.
-
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.
-
Go to Settings > Applications.
-
Select Create application.
-
Enter an Application name (for example, my-app).
- The API ID is generated automatically.
-
Under Choose Start page, select From existing, then select Home.
-
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.
- Go to Content > Home.
- Scroll to Name in URL and select Change.
- Clear the field so it is empty.
- 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.
Updated about 22 hours ago
