Excellent, thanks a lot for the detailed answer!
A practical case for this would be simply to output main navigation of the site, to retrieve page attribute for SEO, etc.
This may be already there but I don't find any reference to it in the docs.
Thanks for the pointers,
I get it now, thanks a lot for the help!
is It possible you added the title attribute to the author after the content was created? If so you’ll need to re-save them. I literally had this happen 20min ago.
You are right, I did add the title attribute afterwards but the issue remains even after I delete the two collections and create them again :-/
I've just started playing around with headless feature of Runway.
I have two collection: `authors` and `news` – for which I have configure headless access. News template has a relationship with `authors` collection so that content editor can assign an author for a given news.
I do get the json response, but the author is returned as an array of what seems to be `ids`.Code: news.php
- $Headless = $API->get('HeadlessAPI');
- $Response = $Headless->new_response();
- $Collections = $API->get('ContentCollections');
- $Collection = $Collections->find('News');
- $Set = $Headless->new_set('news');
- 'sort' => 'date',
- 'sort-order' => 'DESC',
Any idea on how to get the relationship to be returned as part of news.json?