Explore the community Forums Lectora Lectora Suggestions Reserved Variable: Course Structure (Chapters, Sections, Pages)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #419662 Score: 0
    Profile photo of William R
    William R
    Member
    beginner
    intermediate
    friend finder
    curious george
    wise owl
    1 pt
    @wr3030

    It would be great from a javascript standpoint if there were a reserved variable that offered the structure of the course (Chapters, Sections, Pages, maybe even AU for SCORM).

     

    I see this as a variable that you could access from any page and dig into structure of the course in a javascript array of object so that you could pull the names of the sections, chapters, pages.

    example…

    Reserved Variable name: CourseStructure

    When calling VarCourseStructure.value, you might be given something like this:

    chapters: [
    {
    chapterName: ‘Introduction’,
    chapterSections: [
    {
    sectionName: ‘Welcome’,
    },
    {
    sectionName: ‘Introduction’,
    }
    ]
    }
    ]

    #419810 Score: 0
    Profile photo of CarlFink
    CarlFink
    Member
    beginner
    intermediate
    contributor
    LUC16 Attendee
    wise owl
    curious george
    advanced
    14 pts
    @CarlFink

    I’d actually want the returned value to be in XML. There are lots of great off-the-shelf XML parsers one could use then.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.