getNavigation
Ottenere i componenti di un menu di navigazione
getNavigation(menuID)
| param | type | note | default |
|---|---|---|---|
| menuID | string |
{
"_id":{
"$id":"5a859c3f16f46a87517b23c6"
},
"groupUID":114501,
"title":"Titolo del menu",
"description":"Descrizione del menu",
"sections":[
{
"title":"Link ad un prodotto",
"type":"product",
"url":"1522279", // product UID
"rel":"",
"target":"_self"
},
{
"title":"Link ad una categoria",
"type":"category",
"url":"1522275", // category UID
"rel":"",
"target":"_self"
},
{
"title":"Link ad un brand",
"type":"brand",
"url":"1522278", // brand UID
"rel":"",
"target":"_self"
},
{
"title":"Link ad una pagina",
"type":"page",
"url":"569cc86416f46a85764cfada", // page ID
"rel":"",
"target":"_self"
},
{
"title":"Link ad un post del blog",
"type":"post",
"url":"5cab58cb16f46a013b8b47df", // post ID
"rel":"",
"target":"_self"
},
{
"title":"Link semplice",
"type":"url",
"url":"\/blog",
"rel":"",
"target":"_blank"
},
{
"title":"Collegamento ad un menu di secondo livello",
"type":"navigation",
"url":"5e1dc39a16f46a265eba1503", // navigation ID
"rel":"",
"target":"_self"
}
]
}
Commenti