Hi. I’m a little confused about how to retrieve a list of all the linked fields in an entry.
For example, I have a content type of landingPage that contains a field called sections which is a link to many content types.
I want to retrieve a list of how many linked entries ‘sections’ had.
I followed these instructions from the guide which I thought was my case but it’s not working:
Links to a specific item
If you want to retrieve all items linked to a specific entry, the query URL should filter entries on their specific content_type , linking_field (field to link items) and entry_id from the target entry.
I want the content of entry and I used the same way as Gisete. But the result is zero.
A bit more exact, I want the content of a textbox. Inside these box is a bullet point list. When I fetch the data just with:
then I get a list of deep nested objects. Every list item is an own object. What a pain. Can you recommend me a way, how I get my data in a better way? I expected something like one object witch is holding my HTML code.
I believe you might refer to RichText format, that so far is the only one that, when represented as JSON has a lot of ‘deep nested objects’.
To parse the element correctly, you will need to use one of the renderer, as shown here: