Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcms committed Jul 12, 2020
2 parents bca9598 + 4872c20 commit 0df5fb4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion site/docs/api/references.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ By default, if Alpaca encounters a `$ref` in your schema, it look to see if ther
options. That is, unless you provide a specific `$ref` in your options for the same block, in which case it will use
that instead.

If you are using alpaca in CloudCMS, you can use references to refer to other content types by their qnames. Learn more here:

https://www.cloudcms.com/documentation/forms/references.html

https://www.cloudcms.com/documentation/content-models/references.html

## Example #1: Nested Tree (using Array)

Expand Down Expand Up @@ -176,7 +181,7 @@ Let's define an article that reuses the Author schema and options via `$ref` lik

<div id="field4"> </div>
{% raw %}
<script type="text/javascript" id="field1-script">
<script type="text/javascript" id="field4-script">
$("#field4").alpaca({
"type": "create",
"schema": {
Expand Down

0 comments on commit 0df5fb4

Please sign in to comment.