Posts

Showing posts with the label Content Hub

Embed BrightCove Video URL in Sitecore Content Hub

Image
In continuation of utilizing to Sitecore Content Hub feature, one of our requirements was to embed the Brightcove video in Content. To integrate video in Sitecore Content Hub, the Content Hub Rich Text editor named the CKEditor provides functionality to upload the video to Content Hub and insert the video using the following button. Content Hub utilizes CK editor to edit the HTML content. After further analysis, I found that CKEditor tool only supports certain media providers, such as YouTube, Vimeo, Twitter, and Spotify. It will not work with custom video links. More information is available here:  Media providers Unfortunately, we do not have any OOTB option to embed the Bright Cove video URL in Content. To work around that I decided that I would embed the video URL using <iframe> tag into the content or other HTML runtime on the save button click. Step 1: Create a new field in the Content Hub to allow the author to enter the video URL

Set Default Values in Sitecore Content Hub DAM and CMP

Image
It is the most common requirement in Content Hub to set the default values in fields. In this blog post, I will cover setting the default values in Sitecore content Hub DAM and CMP Modules.  DAM (Digital Asset Management) Module: 1. Go to the Manage icon. 2. On the Manage page click on the Pages. 3. On the Pages page in the left panel scroll down to the Create page, and from Layout choose the Creation component. 4. On the Creation Component page select Upload files and click on the Add value option 5. I am setting the default value in the Asset Description field, so I have selected the Description field and set the value 6. Now go to the Create page from the Ribbon bar navigation option and upload an Image and you will get the default value in your description field. CMP (Content Marketing Platform) Module: 1. Go to the Manage icon. 2. On the Manage page click on the Pages. 3. On the Pages page in the left panel scroll down to the Search page, an

Custom Export Profile in Sitecore Content Hub

Image
By default, in Sitecore Content Hub when we export the Content Entity, the exported Excel file includes all the fields. It's quite confusing when we want to read, analyze, and perform any operation on the data. The whole process uses Export Profile in the background. To export only specific fields into the Excel files we need to create a custom Export profile into Sitecore and Sitecore provides this functionality OOTB to create Custom Export profile. The following steps describe how to create a custom export profile for Content Entity and enable that particular export profile on the selection component of the search page. Create Export Profile: 1. Click on the manage icon, in the top right corner and choose the Export Profile option. 2. On the Export profile page, click on "+ Export Profile" and in the Export profile popup fill in the details: Name: Name of the Export Profile Definition: Entity Definition used for t

Add Components to the Content Details Page in Sitecore Content Hub

Image
In this blog post, I will guide you through the process of adding an Out-of-the-Box (OOTB) components to the content detail page. This addition will enable us to provide comprehensive details of an entity, for example, Entity History and State Flow component that will provide you information about the History of the Entity and State Flow details respectively. Add Entity State Flow Component: 1. Go to the Manage icon. 2. On the Manage page click on the Pages. 3. On the Pages page in the left panel scroll down to the Content Details page and select it. 4. On the Layout tab, scroll down and click on + component to add a new component. 5. In the next popup Enable the Visible option and change the UI visibility type It will be added to the Content Detail page You can click on the State Flow component and change or update the setting as per your requirement, I am leaving it as it is.  Add Entity History Component: 1. On the Pages page, select the

Add New Member Option Missing on Content Hub Schema Page

Image
The Add New Member option is missing from the Schema page. I have been investigating one of the issues in our Content Hub environment. I tried to recall the steps when I encountered a similar issue, but it resolved itself automatically after some time. Here are the steps I performed: Go to the M.content schema using the Schema option from the dashboard. Select the Settings option from the three-dot menu at the top right corner. Enable the Taxonomy-enabled definition. After enabling this option, the Add new member button disappears, along with the Settings option, making it impossible to disable the setting again. The above screenshot I have taken from different CH environments to elaborate on the issue. Workaround: 1. As a preliminary step, I recommend that you try discarding any changes to the M.Content schema. After doing so, verify if the new members become visible. 2. If it's still not resolved, then this issue belongs to the C

Get a List of all Content Entities of the Same Content Type in Sitecore Content Hub

Image
While working on the Content Hub project I received the requirement to get all the Content Entities of a specific Content Type from the Content Hub. For instance, if your Content Hub contains various types of content entities such as a Blog, Article, and News type and there are multiple entities of each content type. Here I am taking an example of retrieving all the Content Entities of the Blog type. To get the list of all the content types, you can use  Web Client SDK , there is a method to retrieve the single entity using the  Get entities method. Solution: 1. Create a sample console/web application in Visual Studio and add a reference to the Web Client SDK NuGet package (Stylelabs.M.Sdk.WebClient) to your project.  2. Before beginning to write the logic, you should have the Parent ID of the Content Entities that represent the ID of the Content-Type. To find the Content Type ID or Parent ID of a content entity from the Content Hub interf

Mention a Content Hub User Group in an Annotation

Image
Sitecore Content Hub provides an Annotation feature, that you can use to review content, provide feedback and collaborate with others.  To mention a Content Hub user in an Annotation, Select the text in Content Entity, enter @ followed by a username, and select as many people as you want. When you mention a user, they receive an email with your comment and a link to the content entity. The issue is Sitecore Content Hub Provides a feature that you can mention the User but if there is a User group and you want any of them can review, approve, or take action on the entity so no such option we have in Sitecore to mention a User Group in an annotation.  I have checked with Sitecore and Sitecore submitted a feature request for the Content Hub product so that it can be considered for future versions of the product. To track the future status of this request, please use the reference number " FRM-2121 ". See the Sitecore documentation for How

Custom Button on Content Details Page in Sitecore Content Hub

Image
In this blog post, I will discuss how to add a custom button on the Content Details page in the Sitecore Content Hub. To understand the use case of this feature, suppose you have a client requirement to perform any business logic on that particular entity for instance updating field values or applying auto-tagging, etc. 1. Go to the pages option from the Manage button in the top right corner of the Home page. 2. In the pages, search for the Content Details page: 3. On the Content Details page, locate the operations/entity operations, in the Header Zone (Right). By default, it can be disabled so enable it by system settings. 4. After that, it will be enabled, and click on the Operation/Entity Operations it navigates to the entity operation component. 5. We will add a new operation, click on the Add operation button on the top left and find the custom External Action. 6. Name it as per your requirement, I am naming it AI Tagging, to change the