directus-extension-super-table 0.5.1 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Super Layout Table Extension for Directus
|
|
2
2
|
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
3
6
|

|
|
4
7
|

|
|
5
8
|

|
|
@@ -177,6 +180,12 @@ name clash the most specific (deepest) match wins:
|
|
|
177
180
|
column like `{{treatment.sort}}`
|
|
178
181
|
- `{{<parentField>}}` — a bare token reads a field on the parent row, e.g.
|
|
179
182
|
`{{code}}` shows the order's own code next to each item
|
|
183
|
+
- **Deep paths through the target work too**, including a `translations`
|
|
184
|
+
relation stored inside the target: `{{item:service.translations.label}}`.
|
|
185
|
+
Add a `:lang` suffix to choose the language (`…translations.label:de-DE`);
|
|
186
|
+
without it the current user's language is used. The `:lang` suffix is
|
|
187
|
+
honored on M2A `item:` tokens only; on other relational columns it is not
|
|
188
|
+
interpreted (and an invalid path is dropped rather than sent to the API).
|
|
180
189
|
|
|
181
190
|
Each junction row only resolves the item token whose `<collection>` matches its own
|
|
182
191
|
target, so a template can cover every allowed collection at once:
|