Roothpathlevel
Type: integer
Context: prediction, questions, autocomplete
About this parameter
If userootpath is set to true, this parameter controls the number of parts of path that control the filter.
To simplify recommendations on, for example, a review page, you can specify in the prediction div that only subpages should be displayed. Then the correct subtree filter is automatically calculated.
Usage examples
<div class="rek-prediction" data-userootpath="true" data-rootpathlevel="1"></div>
<!-- If this div is added to a page, and the page has this URL:
https://test.com/educationandchildcare/kindergartenandchildcare/kindergardenopeninghours.html
It will create automatically the subtree filter:
data-subtree="/educationandchildcare/"
-->
<div class="rek-prediction" data-userootpath="true" data-rootpathlevel="2"></div>
<!-- If this div is added to a page, and the page has this URL:
https://test.com/educationandchildcare/kindergartenandchildcare/kindergardenopeninghours.html
It will create automatically the subtree filter:
data-subtree="/educationandchildcare/kindergartenandchildcare/"
-->