addCollection( collection, overwrite)
Adds the specified collection to the framework page
Parameter |
Description |
---|---|
collection |
An object representing the collection to add |
overwrite (optional) |
Defines whether to overwrite an existing collection with the same parameters. Default value is false. |
Return Value
True, if the collection was added.
False, if the collection was not added, because a collection with the specified parameters exists.
Example
LSAPI.Collections.addCollection(newCollection, true);