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-pagetype 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 Q&A in the same way as to "normal" recommendations.

The most commenly used are:

Nr of Q&A:s.

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"

Term must be question or answer

data-term="school"

Use Q&A in search

You can enable Questions & Answers in your search box if you are using Rek.ai's search suggestion feature.