Connectors

You can create fields in your form which connect to your Cloud CMS content. This is done by configuring the Alpaca field's datasource to use CloudCMS via a connector.

Example

Suppose you have a type my:category and want to create a dropdown field to select category when creating another document. To do that, you would create a field in your form like this:

{
   ...

      "category": {
         "type": "select",
         "dataSource": {
            "connector": true,
            "config": {
               "query": {
                  "_type": "my:category"
               },
               "mappings": {
                  "value": "_doc",
                  "text": "title"
               }
            }
         }
      }

   ...
}