docs: add documentation for media library folders feature

This commit is contained in:
Daniel Lautzenheiser 2023-04-12 16:38:38 -04:00
parent bc1d670ee0
commit 158e8f2716
2 changed files with 22 additions and 1 deletions

View File

@ -192,6 +192,12 @@ For repositories stored on Gitea, the gitea backend allows CMS users to log in d
See [Gitea Backend](/docs/gitea-backend) for more information. See [Gitea Backend](/docs/gitea-backend) for more information.
## Media Library Folders
Adds support for viewing subfolders and creating new subfolders in the media library, under your configured `media_folder`.
See [Media Library Folders](/docs/configuration-options#media-library-folders) for more information.
## External Media Library ## External Media Library
Using an external media library allows you to store your media files outside of your git backend. This is helpful if you are trying to store large media files. There are three external media libraries available in beta: Using an external media library allows you to store your media files outside of your git backend. This is helpful if you are trying to store large media files. There are three external media libraries available in beta:

View File

@ -67,7 +67,22 @@ Based on the settings above, if a user used an image widget field called `avatar
This setting can be set to an absolute URL e.g. `https://netlify.com/media` should you wish, however in general this is not advisable as content should have relative paths to other content. This setting can be set to an absolute URL e.g. `https://netlify.com/media` should you wish, however in general this is not advisable as content should have relative paths to other content.
## Media Library ## Media Library Folders <BetaImage />
The `media_library_folder_support` flag enables support for viewing subfolders and creating new subfolders in the media library, under your configured `media_folder`.
<CodeTabs>
```yaml
media_library_folder_support: true
```
```js
media_library_folder_support: true,
```
</CodeTabs>
## Media Library Integrations <BetaImage />
Media library integrations are configured via the `media_library` property, and its value should be an object with at least a `name` property. A `config` property can also be used for options that should be passed to the library in use. Media library integrations are configured via the `media_library` property, and its value should be an object with at least a `name` property. A `config` property can also be used for options that should be passed to the library in use.