Picture of Dean Wilson
Creating a second menu (or submenu)
by Dean Wilson - Friday, 19 August 2016, 10:32 AM
 

Hello 

I'm having a lot of trouble building a submenu. I've already set up a main menu on the homepage, and that's working fine. When the user selects one of those options, I want to introduce them to ANOTHER menu page that they have to choose from. Then I can reveal the rest of the content. But I just can't seem to create that second menu, and I've spent half a day trying to figure it out.

Here's what I have so far, and although my home page menu is working, it's blank pages beyond that. Bearing in mind, I'm not getting json errors, it's all running, just not producing anything.

[

{
"_id":"co-10",
"_parentId":"course",
"title":"Test",
"displayTitle":"Test",
"_type":"menu",
"_classes":"",
"title":"Test",
"body":"",
"_graphic": {
"src": "course/en/images/test.jpg",
"alt": "alt text"
},
"linkText":"Next"

},
{
"_id":"co-15",
"_parentId":"co-10",
"title":"Test",
"displayTitle":"Test",
"_type":"menu",
"_classes":"",
"title":"test",
"body":"",
"_graphic": {
"src": "course/en/images/test.jpg",
"alt": "alt text"
},
"linkText":"Next"

]

Am I doing something wrong here? It's my understanding that the contentObjects.json file is where I build menus and pages, rather than changing "_type:page" to "_type:menu" in the articles.json which I've also been experimenting with. 

Would really appreciate any help.

Thank you

Dean