This project is not covered by Drupal’s security advisory policy.

Decision Tree allows you to classify your content against predefined questions (by providing answers to these questions) and then builds a tree using these questions as "nodes" and your content as leafs. It allows to have an interactive way of asking your users a series of questions and then providing them with a list of products or solution to their issues.

Do not use on production sites yet, only on dev/test installations.

Installation
Install as a usual module. Upon installation the module will create:

  • "Decision Tree" taxonomy vocabulary containing one term "DT1"
  • "Decision Tree question" content type with 2 custom fields:
    • "Answers" textfield allowing for unlimited number of answer options
    • "Question boost" field allowing to boost questions so that they are included earlier in the decision tree

Usage
"Decision Tree" taxonomy vocabulary defines the decision trees you will have on your site - if you add term into this vocabulary then you will have one more decision tree.
Then you should create "Decision Tree quetion" content and assign these questions to the decision trees of your choice.
After that you should "Enable Decision Tree" for the content types that you want to appear in your decision trees. Just edit the content type and check the "Enable Decision Tree" checkbox.
Then clear the caches and go to any node of the above content type - you should have the "Decision Tree" tab available. If not - check the permissions for this module. On the "Decision Tree" tab you should answer the questions you created and this node will be included in the decision tree.
To generate the decision trees you should go to Administer -> Site Configuration -> Decision Tree and press the "Generate" button.

After all that you should have your decision trees availalbe at "/decision_tree"

Decision Tree algorithm
This module uses the ID3 algorithm to build decision trees. There might be some other algorithms added later on.

Alternative solution
The similar functionality is available via Finder wizard module - it uses vocabularies as questions and taxonomy terms as answers.

Project information

  • Created by duozersk on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases