Adds the comment.

Syntax

Smartsite SXML CopyCode image Copy Code
integer itemcomments.addcomment(locator contentItem, string comment)
integer itemcomments.addcomment(locator contentItem, string comment, string status)
integer itemcomments.addcomment(locator contentItem, string comment, string status, string guid)
integer itemcomments.addcomment(locator contentItem, string comment, string status, string guid, string[ ] extraData)
integer itemcomments.addcomment(string comment)
integer itemcomments.addcomment(string comment, string status)

Parameters

Name Data Type Description
contentItem Locator The content item.
comment String The comment.
status String The status.
guid String The GUID. To avoid reposts.
extraData String[ ] Array of name/value pairs of extra data.

Return Value

Data Type Description
Integer The id of the new comment
SXML