Adds the comment.

Syntax

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

Parameters

Name Data Type Description
contentItem Locator The content item.
parentComment Integer The parent comment.
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