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.
Files changed (3) hide show
  1. package/README.md +9 -0
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Super Layout Table Extension for Directus
2
2
 
3
+ ![Version](https://img.shields.io/github/v/release/smartlabsAT/directus-super-table)
4
+ ![License](https://img.shields.io/badge/license-MIT-green)
5
+ ![npm downloads](https://img.shields.io/npm/dt/directus-extension-super-table)
3
6
  ![Quality Checks](https://github.com/smartlabsAT/directus-super-table/workflows/Quality%20Checks/badge.svg)
4
7
  ![TypeScript](https://img.shields.io/badge/TypeScript-Strict-blue)
5
8
  ![ESLint](https://img.shields.io/badge/ESLint-0%20errors-brightgreen)
@@ -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: