Image Field Type
Additional attributes, defaults, and usage example for image fields.
Usage Example
Here is an example that shows a field called featuredImage
on a page.
1
2
3
4
5
6
7
8
9
10
The featuredImage
field will be rendered as a image preview, with a button to trigger the selection modal.
Clicking the button (Add Image or Change) opens the selection modal.
Additional Properties
The following properties are unique to image fields.
source
Defines the source used to render the selection modal and store the selected content.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
This will render a custom selection modal within an <iframe>
, and stores the content as a URL string.