Open
Description
How can I add a menu as a relation on the component side?
I read this question #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": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::menus.menu-item"
}
}
}
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!
Metadata
Metadata
Assignees
Labels
No labels