|
||
The following code example shows how to reset content rating of a document using the API.
[C#]
using CMS.TreeEngine; using CMS.CMSHelper;
int nodeId = 241;
// Get the document TreeProvider tree = new TreeProvider(CMSContext.CurrentUser); CMS.TreeEngine.TreeNode node = tree.SelectSingleNode(nodeId, CMSContext.PreferredCultureCode);
// Reset its rating TreeProvider.ResetRating(node); |