Picture of Max M
Plugin with navigation menu
by Max M - Tuesday, 23 February 2016, 2:19 PM
 

Hello everyone,

I'm using Adapt Authoring, I learned some things about creating themes, menus, and just started making my first plugin for the framowork. I've already have menu icon, right of back arrow, and sliding drawer on the leftside, same like in Page Progress plugin. Now I need to list all pages and sections of the course, then set them as a tree, and let them navigate to the corresponding page/section. I have no idea how to start with listing this course elements, and go with the futher steps, hope you can help me with this one.

Many thanks in advance!

Picture of Matt Leathes
Re: Plugin with navigation menu
by Matt Leathes - Tuesday, 23 February 2016, 3:39 PM
 

Hi Max

Adapt.course.getChildren() will get you a list of all the content objects (as a Backbone Model I think) - generally speaking these are the 'pages' of the course. Not entirely sure what you mean by 'section' here - but the immediate children of each content object are the articles, the children of the articles are the blocks and the children of the blocks are the components.

You might find this wiki page helpful.