You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _help/src/Pages/folders-structure/data/special-properties.md
+119-5Lines changed: 119 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,19 @@ title: Data 101
7
7
8
8
[back to data folder structure](/folders-structure/data.html)
9
9
10
-
### `__collection` special property
10
+
## Table of contents
11
+
12
+
-[`__collection` special property](#__collection)
13
+
-[`__names` special property](#__names)
14
+
15
+
---
16
+
### <aname="__collection"></a>`__collection` special property
11
17
12
18
There is a special property `__collection` of each child property of `Data` object. Using this property you can navigate through collection of child properties of current property.
13
19
14
20
##### Example (simple)
15
21
16
-
Let's assume that you have the following folders structure on you file system:
22
+
Let's assume that you have the following folder structure on your file system:
17
23
18
24
```none
19
25
Data
@@ -45,11 +51,11 @@ Finally, the html rendered by Solidify Engine will look like this:
45
51
<ul>
46
52
<li>
47
53
<imgsrc="poland.png"/>
48
-
On 1st of February at Warsaw
54
+
On 1st of February in Warsaw
49
55
</li>
50
56
<li>
51
57
<imgsrc="ukraine.png"/>
52
-
On 1st of March at Kyiv
58
+
On 1st of March in Kyiv
53
59
</li>
54
60
</ul>
55
61
```
@@ -58,7 +64,7 @@ Finally, the html rendered by Solidify Engine will look like this:
58
64
59
65
You can also use nested `__collection` properties.
60
66
61
-
Let's assume that you have the following folders structure on you file system:
67
+
Let's assume that you have the following folder structure on you file system:
62
68
63
69
```none
64
70
Data
@@ -121,3 +127,111 @@ Finally, the html rendered by Solidify Engine will look like this:
121
127
</li>
122
128
</ul>
123
129
```
130
+
131
+
---
132
+
### <aname="__names"></a>`__names` special property
133
+
134
+
There is a special property `__names` of each child property of `Data` object. Using this property you can navigate through names of child properties of current property.
135
+
136
+
##### Example (simple)
137
+
138
+
Let's assume that you have the following folders structure on you file system:
139
+
140
+
```none
141
+
Data
142
+
Poland.json
143
+
Ukraine.json
144
+
```
145
+
146
+
And inside each `.json` file in this example you have the following structure:
0 commit comments