Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

Commit b16ceaa

Browse files
committed
WIP: usage doc
1 parent 6f06eeb commit b16ceaa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/usage.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ This concerns [all text fields](https://docs.directus.io/app/data-model/fields/t
9999
```liquidjs
100100
{% liquid
101101
assign article = directus.collections.article | first
102-
article.title
103-
article.date_updated
104-
article.some_checkbox
102+
echo article.title
103+
echo article.date_updated
104+
echo article.some_checkbox
105105
%}
106106
```
107107

@@ -167,7 +167,7 @@ With `reciepe` a singleton collection
167167
```liquid
168168
{% liquid
169169
ingredient = directus.collections.reciepe | directus_relation: "ingredients" | first
170-
ingredient.name
170+
echo ingredient.name
171171
%}
172172
```
173173
### Builder - M2A
@@ -178,9 +178,9 @@ for page in directus.collections.pages
178178
assign sections = page | directus_relation: "sections"
179179
assign first = sections | first
180180
if first.collection == "headings"
181-
section.title
181+
echo section.title
182182
else
183-
section.text
183+
echo section.text
184184
endif
185185
endfor
186186
%}
@@ -192,6 +192,6 @@ endfor
192192
{% liquid
193193
assign article = directus.collections.article | first
194194
assign translted = article | directus_relation: "translation" | where: "lang", "fr"
195-
translated.title
195+
echo translated.title
196196
%}
197197
```

0 commit comments

Comments
 (0)