Comment metadata
You can allow your visitors to specify, in addition to a comment they submit, any amount of additional information in the form of comment metadata, so long as each piece of metadata is in the form of a string (which can be XML, JSON or plain text). When retrieving the comments, you can then retrieve the metadata along with each comment.
- Adding metadata to a comment
-
Both the
postComment()andeditComment()methods have a final parameter of typeMap<String, String>that you can use to any number of property-value pairs along with comment being created or modified. - Fetching metadata along with a comment
-
Both the
retrieveFlatComments()andretrieveThreadedComments()methods have a final parameter of typebooleanthat you can set totrueto retrieve any metadata that was submitted along with the comments.