Newer Version Available
Set Up a Connection for Your JSON CMS (Beta)
To set up a CMS connection to your JSON content, specify the server URL and paths to the
content. The CMS connection is the secret sauce that lets your community page locate and
retrieve CMS content.
- In Setup, enter All Communities in the Quick Find box, then select All Communities.
- Under Workspaces, click CMS Connect.
- To create a new connection, click New, and enter the connection details.
- Name—Enter a connection name, for example, Blogs.
- Connection Type—Select Public.
- CMS Source—Select your CMS source, for example, Wordpress.
- Server URL—Enter the URL, for example, https://public-api.wordpress.com.

You can also select an existing connection to edit and add JSON content.
- In the JSON section, click Add JSON.
- Enter a content type name. It can be anything you want. For example, Home Improvement Blogs. The name provides an easy way to group related content.
- Select the type of content to add. Is it a single article or blog post, such as DIY Dryer
Vent Cleaning? Then select Content Item. Or is it a grouping of
items, such as DIY Featured Blogs, that has links to individual blog posts? Then select
Content List.
Let’s create a content list that pulls in some blog articles. When you configure a content list, you also set up a content item that points to each item in the list.
- Click Add a content list.
- Enter a name for the list, for example, Featured Blogs.
- Enter the relative path to the JSON content in your CMS, for example,
rest/v1.1/sites/capricornblog.wordpress.com/posts.

- Click Add a content item.
- Enter a name for the content item, for example, Blog Item.
- Enter the relative path, for example, rest/v1.1/sites/capricornblog.wordpress.com/posts/{component}. The {component} variable indicates the path for an item ID, like $postId. It is appended dynamically at runtime based on the content item referenced. There are four variables you can use in a JSON path: {component}, {itemsPerPage}, {pageNumber}, and {offset}.
- Enter the ID and title for the content item. JSON expressions are expected in the ID
and Title fields here, so you don’t enter them with an @.

- Want to add more JSON served content? Repeat the previous steps for each content item or content list to add. You can add up to five different JSON connections, each with up to one JSON content item and 10 JSON content lists. Save the connection when you’re finished.
The next step is to drag a JSON component to your page using the Community Builder. For instructions, see Add CMS Connect (JSON) Components to Your Community Pages (Beta).