Media Provider Types
Netlify Create can work with any media provider you choose to use, which tend to fall into one of three categories:
- Built-in services from API CMSs
- Third-party media providers
- Storing directly in the repository (for file-based content)
API CMS
If your project is configured to work with API-based CMS (Contentful, Sanity, etc.), your assets will be stored in that CMS.
Netlify Create knows how to work with media from headless CMS providers. All you need to do is configure the content source appropriately using the contentSources
property. The best way to do this is to find the appropriate integration guide.
Third-Party Media Providers
Regardless of your content source, you have the option to use a third-party media provider. These services are configured through the Netlify Create application. See below for supported providers:
Storing Media in Repository
If you're using files as your content source (Git CMS), you can also choose to store media files within your repository.
This can be configured through the assetsConfig
property in the Git CMS module configuration.
Asset Properties
The following properties are available for configuring media assets.
assetSources
Defines a custom source to be used selectively by image
fields.
This is currently referring specifically to custom iframe
sources. Other third-party sources are available as direct integrations. See the integration guides for usage information.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
filterAsset
Filter assets available to be used in Netlify Create based on the current user context.
1
2
3
4
5
6
- The
filterAsset
function is called for every asset that is loaded from all content sources. The return value (boolean orundefined
) determines if the asset is available to be edited in Netlify Create, overriding thehidden
property on that asset.- If
hidden
istrue
on a asset, returningtrue
fromfilterAsset
will override that and make the asset visible and editable. - If
hidden
isfalse
(orundefined
) on a asset, returningfalse
fromfilterAsset
will override that and hide the asset, making it uneditable. Returningundefined
fromfilterAsset
will leave the asset visible and editable.
- If