Building a Purple Experience
Components

Collections

4min

Purple Experience Builder



Summary

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.



Preconditions

  • Have a Collection created in Purple Hub and have it published to the Public Database


Explanation

Collections in views.json

  1. dataSource: Is responsible for querying the collection from the Purple Hub. Value from dropdown should be: CollectionDataSource
  2. type: To work with a collection, the value from the dropdown should be: collection
  3. mode: value ‘get collection’ will return the whole collection without content; value ‘getContentsInCollection’ will return a list of all the content of the collection.