mattmilburn / strapi-plugin-menus

A plugin for Strapi CMS to customize the structure of menus and menu items.
MIT License
110 stars 27 forks source link

Media custom fields not working in Strapi v4.25.1 #162

Open olivierneo opened 2 months ago

olivierneo commented 2 months ago

Hello Team, In Strapi v4.25.1 the "Media" tab shown on the example documentation is not working here, it displays a full white screen.

Capture d’écran 2024-06-28 à 13 09 38

In strapi-server.js :

example_media: {
      type: 'media',
      allowedTypes: ['images'],
      multiple: false,
    }

In plugins.js :

media: [
            {
              input: {
                label: 'Media',
                name: 'example_media',
                type: 'media',
              },
            },
          ]

Yarn : v1.22.22 strapi-plugin-menus : ^1.6.1,

Note : the relations fields seems to be unusable too.

igotDiamonds commented 2 months ago

You should specify allowedTypes in plugin.js too

{
  input: {
    label: "Image",
    name: "image",
    type: "media",
    description: "...",
    allowedTypes: ["images"],
  }
}