Tree Nodes: Automatic Return to Previous Tree

  • Updated

About Connecting Trees

Zingtree makes it easy to break up your projects into smaller pieces, allowing you to connect multiple trees for your users to travel through different branches during their session.

 

There are several methods you can use to connect your trees:

  • You can create direct paths to another tree using Tree Nodes and then linking to those nodes through Action Buttons or Persistent Buttons.  
  • You can add a Search Form inside a content node that will allow your users to find another tree in your organization based on the criteria you set.
  • You can add a Tag List template inside a content node to present a list of trees by tag or nodes by tag for your users to view.

 

Return to Previous Tree 

Using a Tree Node – you can set up a method for your users to automatically return to the previous tree, allowing them to easily navigate back to the last step they visited in a previous tree.

 

How to set it up

  • Create a Tree Node
  • In the Open Tree field, select (Return to previous tree)

  • Enable user access to this Tree Node through an Action Button or a Persistent Button

 

Default return behavior

The Return to Previous Tree default behavior depends on the travel method used to get to the current tree: 

  • Tree Nodes: When the user travels trees directly through Tree Nodes, returning will lead the user to the starting node of the previous tree. See the section below to customize the return behavior.

  • Search Forms, Tag lists, Persistent Buttons: When a user travels trees using one of these methods, returning will lead the user to the node where they left off.

  • Fallback: In any return scenario, if the system fails to find a previous tree, a fallback is in place that directs the user to the top of the starting tree. 

Settings to customize return behavior

Tree Setting: Return Node Behavior

In your Tree's Settings > Basic tab, you can access a setting allowing you to set a specific return destination for your users and introduce consistency.

This setting will override the default behavior and direct users to the node specified, no matter how the user previously traveled.

Any specific paths set in Tree Nodes: Return Node ID will override this broader tree setting. 

Tree Nodes: Return Node ID

You can choose specific behavior for the exact return path between the tree you’re building and the tree you’re linking to. This will not impact any other path intersecting with this tree. This will only apply when traveling first through a tree node.

This configuration will override any broader settings configured for Tree Setting: Return Node Behavior

 

Manage this setting in the Tree Node editor, find the drop down for the Return Tree Node ID field and select the destination node.



Tree Setting: Discard Tree from History when “back” button is used

When this setting is enabled, it impacts the Return to Previous Tree logic when tree travel occurs through a “back” click.

Enable the Discard tree from history used by Tree Node setting in your tree's Settings > Data tab:

If a user travels to a previous tree using the “back” button, this setting will discard the activity from session history.  Future Return to Previous Tree activity will then ignore the tree that was backed out of. This setting allows Authors to determine that a back navigation in this scenario indicates it was unintended and should not impact future return logic.

 

An example:

A user travels from Tree A -> Tree B -> Tree C. On Tree C, the user decides they took a wrong turn and clicks “back”  to jump back to Tree B. Later on Tree B, the user encounters a “return to previous tree” node.
What is the result?
-Default behavior will direct the user to Tree C - the very last tree they were on, but the tree they backed out of.  

-When this “Discard Tree from History” setting is enabled, the user will instead be returned to Tree A – because the Tree C activity was discarded as a mistake.

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Didn't find what you need?

Our friendly customer support team is here to help

Submit a Ticket

Looking for help or advice?

Reach out to our knowledgeable community of users.

Zingtree Community