Add alt attribute to imgs

This commit is contained in:
tobias
2024-05-19 08:50:00 +02:00
parent 467b4bb0ad
commit a8362fa88f
4 changed files with 9 additions and 10 deletions

View File

@ -18,6 +18,7 @@ export const Media: CollectionConfig = {
{
name: "alt",
type: "text",
required: true
},
],
};

View File

@ -38,10 +38,7 @@ const Posts: CollectionConfig = {
{
name: "title",
type: "text",
},
{
name: "hallo",
type: "text",
required: true
},
{
name: "publishedDate",
@ -59,7 +56,7 @@ const Posts: CollectionConfig = {
media: {
fields: [
{
name: "imagel",
name: "image",
type: "upload",
relationTo: "media",
required: true,