Fallback in the Content Delivery API
# help-with-umbraco
s
Is it possible to get fallback values in the content delivery api? For instance we have English (master) and Swedish. On the English site we have a privacy policy page, and on the Swedish page we do not. The only content on the page is a culture specific blockgrid. The issue right now is that they pick this privacy policy site from site settings with a normal picker / multinode picker, but when doing so, in the picker modal, it shows the swedish tree with the privacy policy greyed out because its not created. It can still be picked, but it's not delivered through the content delivery api. Not sure exactly how it's supposed to work with fallback in the delivery api? Normally I guess you create the page, but the content it shows is fallback if no content is present on the language page.
b
If it's a content picker can't you use the 'expand' parameter to get the conent / guid of the picked node?
s
Yes but that wont give me the fallback data. If there was some information in the json object that the page in the requested language has a fallback language, then maybe it could be a way. We have something similar with canonicals / alternates where we get urls to all language versions of a page, so maybe there's something similar for fallback.
the issue here is that they've picked a page on the swedish language, which only exists in the english language (it's visible but grayed out and the name is in parenthesis). So in the delivery api, the picker value just returns null when you fetch data with Accept-Language sv-se, in this case.
m
Hi, did you find any solution for this? We are struggling with this issue too...
s
No unfortunately not yet, and there seems to be little interest from Umbraco 😄
16 Views