Creating Custom Salesforce CMS Content Types
What is Salesforce CMS?
Salesforce CMS is a centralized content management system for Salesforce which we can create and share across multiple channels. It enables us to create enriched, modern looking websites by just some clicks. We can also maintain multiple language version of the contents.
CMS Content Type
By default we can only create CMS Content of type Document, Image, and News, however there might be cases where we have needs of other content types for the content as well. We can create the same two ways. With the ManagedContent API, we can quickly create content outside of the standard content types and recently Salesforce Labs also launched an app exchange product named CMS Content Types (Free). Detailed steps are given later on.
Here we will take an example of creating CMS Content Types. Are you excited? Let's start.
First we need to go to Lightning Experience and navigate to CMS Home page. Here we need to create a workspace and set our community as channel in order to create the CMS Contents for Community. We would see Add Content button when we are inside the workspace. Once clicked we see these CMS Content types below.
If you notice, you would only see 3 options as of now. And that's not quite enough, isn't it? Suppose we want to showcase product lists or maybe all company events, in that case we don't want to go ahead with these types, so let us try to create new types.
To do that, there are two ways here. You can follow this link to find the ManagedContent API route here. Recently there has been an interesting app exchange product by Salesforce Labs for free, which can help you create new CMS Content Types and various nodes inside it to hold data. Click this link in order to download it to your Salesforce organization.
Once installed, we can see a new page in App Launcher (in Lightning Experience) named as CMS Content Types, click it. You will be navigated to a page where you would see all the existing CMS Content Types (Like Document, Images, News). Click on New button to create new types and give it a name and create nodes to hold information as per your need.
Please note that once you click on Save, you can't edit it any further. So I would recommend you to create some extra nodes here so that in future we can use it.
Once done, click on Create and you are good to go. Now go back to CMS Home and in the All CMS workspace menu, you should see your workspace, click on it.
Once there, click on Add Content to create CMS Contents with the new content type.
Click on Create and populate all the info including the graphic and save the record.
Now that we have created CMS contents using the custom content type, we would talk about how to create CMS collections and display in Community in the next blog.
Comments
Post a Comment