General
...
Purple Experience
Views
Collections in views.json
4min
Purple Experience Builder
In this article, you learn which settings can be done to request a collection from the Catalog API with the views.json in Purple Experience Builder so that you can display it in your Purple Experience for App and/or Web.
- Have a Collection created in Purple Hub and have it published to the Public Database
![Collections in views.json Collections in views.json](https://images.archbee.com/ygR6KtT9QI_R0u3uKTJsm/85yFVP3S50ROm3-erRsFg_screenshot-2022-12-06-at-163359.png?format=webp)
- dataSource: Is responsible for querying the collection from the Purple Hub. Value from dropdown should be: CollectionDataSource
- type: To work with a collection, the value from the dropdown should be: collection
- mode: value ‘get collection’ will return the whole collection without content; value ‘getContentsInCollection’ will return a list of all the content of the collection.