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

why strapi-plugin-transformer plugin doesn't work #120

Closed mingyuyuyu closed 1 year ago

mingyuyuyu commented 1 year ago

image I read the docs ,it compatible with the Strapi Transformer plugin, but it doesn’t work when i use it , any configs did i not config, help me, guys. image

"strapi-plugin-menus": "^1.4.3", "strapi-plugin-transformer": "^3.1.0", "@strapi/strapi": "4.11.1",

mingyuyuyu commented 1 year ago

response: image

mingyuyuyu commented 1 year ago

@mattmilburn boss, can help see this issue, thanks

francescob commented 1 year ago

you need to specifically configure the transformer plugin like this transformer: { enabled: true, config: { responseTransforms: { removeAttributesKey: true, removeDataKey: true, }, plugins: { ids: { 'menus': true, } } } },

mattmilburn commented 1 year ago

Hi @mingyuyuyu It looks like @francescob is correct, version 3 of the transformer plugin requires you to specify which plugin UIDs should be transformed, which is most likely why it was not working for you. Earlier versions of the plugin did not require this.