Skip to content

Commit

Permalink
Updated handlebars, added cloudcms links to references docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mibewh committed Jun 4, 2020
1 parent f137cb2 commit 4872c20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"datatables.net-rowreorder": "1.1.0",
"eonasdan-bootstrap-datetimepicker": "4.14.30",
"google-code-prettify": "1.0.3",
"handlebars": "4.0.5",
"handlebars": "4.7.6",
"handsontable": "0.11.4",
"jquery": ">= 2.1.0",
"jquery-hashchange": "https://github.com/gseguin/jquery-hashchange.git",
Expand Down
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 4872c20

Please sign in to comment.