Initial commit
This commit is contained in:
commit
5a3bf52ebb
86 changed files with 2639 additions and 0 deletions
34
studio/schemas/objects/figure.js
Normal file
34
studio/schemas/objects/figure.js
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
export default {
|
||||
name: 'figure',
|
||||
title: 'Image',
|
||||
type: 'image',
|
||||
options: {
|
||||
hotspot: true
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
title: 'Caption',
|
||||
name: 'caption',
|
||||
type: 'string',
|
||||
options: {
|
||||
isHighlighted: true
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'alt',
|
||||
type: 'string',
|
||||
title: 'Alternative text',
|
||||
validation: Rule => Rule.error('You have to fill out the alternative text.').required(),
|
||||
description: 'Important for SEO and accessiblity.',
|
||||
options: {
|
||||
isHighlighted: true
|
||||
}
|
||||
}
|
||||
],
|
||||
preview: {
|
||||
select: {
|
||||
imageUrl: 'asset.url',
|
||||
title: 'caption'
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue