buildCommentsCollection Site Method

Returns a Collection object instantiated as a Comments type. Run createOrUpdate() from the Collection object to complete the build process.

Variable Type Description
title String The title for the Collection.
articleId String A unique article ID you chose to identify a Collection within your site.
url String The canonical absolute URL for this Collection.

Java Example

Collection collection = site.buildCommentsCollection(title, articleId, url);

NodeJS Example

var collection = site.buildCommentsCollection(title, articleId, url);

PHP Example

$collection = site->buildCommentsCollection(title, articleId, url);

Python Example

collection = site.build_comments_collection(title, articleId, url)

Ruby Example

collection = site.build_comments_collection(title, articleId, url)

On this page