Add teaser image to blog posts

main
trivernis 5 months ago
parent 08537add35
commit c6ac05f4db
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -58,6 +58,21 @@
"relation": "manyToOne", "relation": "manyToOne",
"target": "api::blog-collection.blog-collection", "target": "api::blog-collection.blog-collection",
"inversedBy": "posts" "inversedBy": "posts"
},
"teaser_image": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false,
"pluginOptions": {
"i18n": {
"localized": true
}
}
} }
} }
} }

@ -978,6 +978,12 @@ export interface ApiBlogPostBlogPost extends Schema.CollectionType {
'manyToOne', 'manyToOne',
'api::blog-collection.blog-collection' 'api::blog-collection.blog-collection'
>; >;
teaser_image: Attribute.Media<'images' | 'files' | 'videos' | 'audios'> &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
};
}>;
createdAt: Attribute.DateTime; createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime; updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime; publishedAt: Attribute.DateTime;

Loading…
Cancel
Save