Open Bujhm opened 4 months ago
How can I add a menu as a relation on the component side?
I read this question https://github.com/mattmilburn/strapi-plugin-menus/issues/90 but it doesn't help me (
Here is what I made and what I got:
I added the relation on the component side (added the relation to attributes section): "attributes": { "homepageLockupText": { "type": "string" }, "homepageLockupImage": { "type": "media", "multiple": false, "required": false, "allowedTypes": [ "images" ] }, "homepageLockupLink": { "type": "string" }, "page": { "type": "relation", "relation": "oneToOne", "target": "api::page.page" },
"type": "relation", "relation": "oneToOne", "target": "plugin::menus.menu-item" }
} }
I've got next result:
The question is: How the get not only Id, but also and menu titles
I tried almost all, I think ;-) Appreciate for any help!
PS: the plugin is awesome!
How can I add a menu as a relation on the component side?
I read this question https://github.com/mattmilburn/strapi-plugin-menus/issues/90 but it doesn't help me (
Here is what I made and what I got:
I added the relation on the component side (added the relation to attributes section): "attributes": { "homepageLockupText": { "type": "string" }, "homepageLockupImage": { "type": "media", "multiple": false, "required": false, "allowedTypes": [ "images" ] }, "homepageLockupLink": { "type": "string" }, "page": { "type": "relation", "relation": "oneToOne", "target": "api::page.page" },
"menuItems": {
} }
I've got next result:
The question is: How the get not only Id, but also and menu titles
I tried almost all, I think ;-) Appreciate for any help!
PS: the plugin is awesome!