Questions & Answers
Implementation Question & Answers

Implementing Question & Answers

Questions & Answers are recommended in the same manner as other pages. The only difference is the addition of the data-entitytype attribute.

<div class="rek-prediction" data-entitytype="rekai-qna" data-nrofhits="5"></div>

This will result in questions being recommended along with their answers in an expandable area. The HTML structure and functionality to expand the answers are automatically created.

Högakusten

Parameters

Parameters are added to Questions & Answers in the same way as to the default recommendations.

The most commenly used are:

Number of questions and answers to display.

data-nrofhits="5"

Which section of the website should serve as the source for generating questions?

data-subtree="education"

Only use questions from pages below the current page.

data-userootpath="true"

Automatically adds a heading above the questions. If no questions are returned, the header is not printed.

data-headertext="Questions & Answers"

Term must be question or answer

data-term="school"

All parameters