Node API

A node API for navigation and marking / tracking completion would be really nice.


As it stands, a Lectora author needs to compile a stack of actions to check the completed / visited status of a chain of pages. With a slick nodeAPI I could do something like this:


Node states: unvisited, visited, complete


nodeAPI.getState('2.1'); //parameters are the node 2.1 is the second chapter, first child.

nodeAPI.setComplete('2.1',true); //same node reference. True = mark all children of the node complete.

nodeAPI.trivGo('2.1'); //Goto node 2.1

nodeAPI.trivGoReturn('2.1') //Goto node 2.1, when all siblings are exhausted, return to current page


More technical than many of your users are used to... but the lack of a good navigation / status API hamstrings users that want to do more sophisticated things without a clumsy set of actions. These elements could be leveraged by actions and other authoring environment mechanisms.


All part of the eventual html generated output re-architecture:) Please say that this is coming soon.


A node API for navigation and marking / tracking completion would be really nice.


As it stands, a Lectora author needs to compile a stack of actions to check the completed / visited status of a chain of pages. With a slick nodeAPI I could do something like this:


Node states: unvisited, visited, complete


nodeAPI.getState('2.1'); //parameters are the node 2.1 is the second chapter, first child.

nodeAPI.setComplete('2.1',true); //same node reference. True = mark all children of the node complete.

nodeAPI.trivGo('2.1'); //Goto node 2.1

nodeAPI.trivGoReturn('2.1') //Goto node 2.1, when all siblings are exhausted, return to current page


More technical than many of your users are used to... but the lack of a good navigation / status API hamstrings users that want to do more sophisticated things without a clumsy set of actions. These elements could be leveraged by actions and other authoring environment mechanisms.


All part of the eventual html generated output re-architecture:) Please say that this is coming soon.


Discussions have been disabled for this post