Custom external references with Cloudinary
Overview
Contentful now supports the Custom external references feature out-of-the-box for Cloudinary which allows you to receive the latest information for assets on delivery through the GraphQL API.
Previously, the Cloudinary app on our marketplace kept a copy of the media information and URLs. With Custom external references, we now fetch the live information from Cloudinary (You have the choice to use either).
Enable Custom external references for Cloudinary
To enable Custom external references for Cloudinary:
Log in to the Contentful web app.
Install the Cloudinary app in the Contentful web app.
Configure the credentials needed inside the Contentful Cloudinary App configuration screen. For more information on how to set up the credentials, see step 1 of the Cloudinary page.
Navigate to the “Content model” tab and select the content type you want to use with the Cloudinary App (and retrieve data from with Custom external references).
Click +Add field and add a new field of type “{} JSON object”.
In the "Appearance" section, under "Choose how this field should be displayed", select Cloudinary App.
Select the Resolve content on delivery check box.
Click Confirm.
Save your changes.
Query Contentful with Custom external references
To query Cloudinary data in Contentful using the API:
Open your preferred GraphQL client or use an online IDE. You can also use our GraphQL Playground app.
Insert the following GraphQL query as an example:
Run the query.
For more information on adjusting your GraphQL API queries and possible errors, see the technical Custom external references and GraphQL API documentation.
Updated Asset Card
We've also refreshed the asset cards displayed after selecting files. We've added more information so that editors and creators alike are able to make sure they've got the right asset selected.