Get collection ID from a CMS page
page.getCollectionID()
Get the collection ID from a page generated by a collection.
Syntax
Returns
Promise<string
>
A promise that resolves to the ID of the collection that generated the page.
Example
Error Handling
If the method fails to find a collection, the method will return an error with the following tag and message.