Commit 46116a91 authored by Tim Rogers's avatar Tim Rogers

added note about index selection to source

parent beff2d61
......@@ -39,7 +39,9 @@ page referenced will be:
To set the data, a "nodes" container must be created with at least one node ("n0") that has a `source` and `target`
The `source` is the path to the data on the page (excluding "jcr:content").
The `source` is the path to the data on the page (excluding "jcr:content"). A "-" followed by a number may be used to select an index rather than a specific node. For example:
`"source": "mediaItems/images/-0/image"` will select the first child node of "images" and then return the "image" child of that node
The `target` is the path to the node that will be set or created on the current node (the node to which bl:map is attached) to hold the returned source data
If more than one field needs to be set from the same source, Multiple nodes may be set so long as each has a unique key. Best practice is to increment "nX":
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment