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

[Question] - Why can't I use Populate=* and nested ? #113

Open nattapong-atk opened 1 year ago

nattapong-atk commented 1 year ago

image

// ./config/plugins.js`
export default {
  menus: {
    config: {
      maxDepth: 3
    }
  },
  'snippets': {
    config: {
      contentTypes: {
        allow: [ 'plugin::menus.menu', 'plugin::menus.menu-item' ]
      }
    }
  }
}
// dependencies
    "@notum-cz/strapi-plugin-content-versioning": "^0.4.7",
    "@palmabit/strapi-app-version": "^1.1.0",
    "@retikolo/drag-drop-content-types": "^1.3.7",
    "@strapi/plugin-color-picker": "^4.10.7",
    "@strapi/plugin-documentation": "^4.10.7",
    "@strapi/plugin-i18n": "4.10.7",
    "@strapi/plugin-seo": "^1.9.0",
    "@strapi/plugin-users-permissions": "4.10.7",
    "@strapi/strapi": "4.10.7",
    "mysql": "2.18.1",
    "strapi-plugin-local-image-sharp": "^1.6.0",
    "strapi-plugin-menus": "^1.4.1",
    "strapi-plugin-react-editorjs": "^2.0.2",
    "strapi-plugin-rest-cache": "^4.2.7",
    "strapi-plugin-snippets": "^1.0.0"
mattmilburn commented 1 year ago

Hi @nattapong-atk Do you have the public role permissions set for MenuItem? That is one thing that might prevent the items prop from appearing in the response data.

It can be found at Settings > Users and Permissions Plugin > Roles.

altruity commented 8 months ago

Adding for reference, in my case it was the above plus checking the same were config'd properly under:

Settings > API Tokens

Then clicking on whatever content token you may have set up (ex. Public API Token Content)

strapi-menu-plugin-role-permissions