43
Add a way to have "fallback" items
Source: directus/directus#3945 · opened by @rijkvanzanten
This is especially useful in translations. If you have incomplete translations for an item, you want it to fallback the empty fields to the "next" translation in line, for example:
Dutch-België
title: Hallo wereld!
description: _empty_
Dutch-Nederland
title: Hallo daar!
description: Welkom op mijn website
should result in
title: Hallo wereld!
description: Welkom op mijn website.
This could be potentially be done with a fallback query parameter that will merge all nested o2m items into a single object, where nulls fallback to the next in line:
with the param it could become
Dutch-België
title: Hallo wereld!
description: _empty_
Dutch-Nederland
title: Hallo daar!
description: Welkom op mijn website
should result in
title: Hallo wereld!
description: Welkom op mijn website.
This could be potentially be done with a fallback query parameter that will merge all nested o2m items into a single object, where nulls fallback to the next in line:
with the param it could become
No pledges yet. Be the first to back this.
Comments
Similar requests
Show Count of Selected Items on Display Page
1 vote · 0 comments
Pass selected items to a flow in a detail item page
2 votes · 0 comments
Language-Fallback on custom translations
1 vote · 0 comments
Default filter for collection
2 votes · 0 comments
Compare and Diff arbitrary items from the same collection
3 votes · 0 comments
No comments yet.