FeatureFuel
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

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests