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

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

Create content and a page through the UI

How to start creating content in Content Management System (CMS) (SaaS) using the built-in UI.

Setting up an Optimizely CMS (SaaS) instance through the UI lets you efficiently configure your content without coding. Starting from the basics, you can create content types, define properties, and build content directly within CMS (SaaS). This method offers an accessible way to tailor your content model to your specific needs, making it easier to manage and publish content. By leveraging the intuitive UI, you can set up a fully functional CMS (SaaS) instance that is ready for content creation and deployment.

Content is the primary resource type of CMS (SaaS). Content can represent webpages, components, media, and almost any other type. A content item holds data in a structured way described by a schema defined by the content type. Every content item is an instance of a content type. See Content.

Before creating your first content item, you define a content type. A content type describes a content item's characteristics and data model schema. But, before you create your content types, you must develop a content model. Content modeling helps provide a "framework" for how your content is structured in CMS (SaaS). See Content model.

Create a content type

  1. In the CMS (SaaS) UI, go to Settings > Content Types.

    Settings > Content Types
  2. Select Create New > Page Type.

  3. On the Create New Page Type page, enter examplePage in the Name field, enter Example page in the Display Name field, and click Create.

    Create new page type

Configure a property for your content type. Properties store and present data, such as page types and block types, and they are fields where CMS (SaaS) editors enter information into a page type. See Properties.

  1. Click Add property and select Text from the drop-down list.
  2. Enter Heading in the Name field.
  3. Select String (<= 255) from the Text Type drop-down list.
  4. Select Content from the Property Group drop-down list.
  5. Click Save.
Click to enlarge

Click to enlarge

See content types.

Create a page

To create a content instance of the page type that you just created:

  1. On the Edit page, open the content tree in the Navigation panel. Click Pin to keep it open.

  2. On the Root node, select More > New Page.

  3. In the Content tab, enter Hello, everyone! in the Heading field.

    Add "Hello everyone!" in the heading field
  4. Click Publish? > Publish.

    Publish your changes

Define a website and host

  1. Go to Settings > Applications.
  2. Click Create Website Application and add a name.
  3. Select From Existing under Choose Start Page and click on the Hello World! page you created as your start page.
  4. Click Create Website.

🚧

Important

If you change the website's URL or host, you must run an Optimizely Graph Full Synchronization scheduled job. See Scheduled jobs.

Run the Optimizely Graph synchronization job

Before you can access the content externally, sync the content needs to Optimizely Graph.

Go to Settings > Scheduled Jobs and start the Optimizely Graph Full Synchronization.

Retrieve content using Optimizely Graph

Go to Optimizely Graph in the top menu to retrieve your page using a GraphQL query.

Add the following query in the GraphiQL interface:

query myQuery {
  examplePage {
    items {
      Heading
    }
  }
}

Click Execute query or press Cmd or Ctrl + Enter.

The result is similar to the following.

{
  "data": {
    "examplePage": {
      "items": [
        {
          "Heading": "Hello, everyone!"
        }
      ]
    }
  },
  "extensions": {
    "correlationId": "8ac0127cda8c6be9",
    "cost": 21,
    "costSummary": [
      "examplePage(21) = limit(20) + fields(1)"
    ]
  }
}
Example GraphQL query

See Get started with Optimizely Graph.

Create a complete site

After you see the basic components in action, you can build your front end using CMS (SaaS).

For a demonstration that uses Vercel to host your front end, see Create a demo site using CMS (SaaS) and Vercel.