To override the default functionalities of the Community, we can use the following code snippet.
- import {ZohoDeskPortalCommunity} from '@zohocorp/zohodesk-portal-community';
//The default value for the configuration is true
ZohoDeskPortalCommunity.setConfiguration(
{
isTopicEditAllowed: true,
isTopicDeleteAllowed: true,
isReplyAllowed: true,
isReplyEditAllowed: true,
isReplyDeleteAllowed: true,
isTopicDetailSearchAllowed: true,
});
By default, all the configurations will work based on the user's authentication state and the relevant Help Center configuration.
We have the API provision to fetch the most popular topics. The code snippet:
We have the API provision to fetch the most discussed topics. The code snippet: