Commit beff2d61 authored by Tim Rogers's avatar Tim Rogers

Moved some structure descriptions to mapping-def, updated i0 to note multiple entries may be set

parent 09eb39e5
bl:ref
## Structure ##
**"bl:map"**: The Map entry on the component/page template
**"i0"**: Container for a mapping entry. Multiple entries may be added so long as each has a unique key. Best practice is to increment "iX" in order to show process order clearly.
**"jcr:primaryType"**: value is always `"nt:unstructured"` and must be entered for each block
......@@ -22,12 +22,6 @@
## Description ##
bl:map entry used to reference data from collections and pull it into the targeted node.
## Structure ##
**"bl:map"**: The Map entry on the component/page template
**"i0"**: Container for the bl:ref entry
**"bl:ref"**:
The path to the collections page. Use "-" to denote a variable that will be filled in based on the current page url.
Example, If the Current page is:
......@@ -48,7 +42,7 @@ To set the data, a "nodes" container must be created with at least one node ("n0
The `source` is the path to the data on the page (excluding "jcr:content").
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 via incrementing "nX":
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":
```
"nodes": {
......@@ -67,8 +61,6 @@ If more than one field needs to be set from the same source, Multiple nodes may
```
Note that the source returned will not have a node name (key), only the value/object found at the path will be returned. If Target is left out, the current node will be used as the target. In this case, the last part of the source path with be used as the node name.
**"jcr:primaryType"**: Always `"nt:unstructured"` and must be entered for each block
## . (dot) Target and Source ##
`.` may be used for the target, source, or both.
......
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