buildCountingCollection Site Method

Returns a Collection object instantiated as a Counting type. Run create_or_update()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.buildCountingCollection(title, articleId, url); 

NodeJS Example

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

PHP Example

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

Python Example

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

Ruby Example

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

On this page