Question & Answers in Sitevision

Implementing Question & Answers in Sitevision

We have not yet fully implemented the integration of Questions & Answers into our Sitevision module.

However, you can display questions and answers using the current module by specifying it as a type under Advanced. What you do is first choose List 1 and then add data-entitytype="rekai-qna" under Advanced. And then choose to display both Pages and Articles. All the other parameters can be used as usual.

Q and A in module

If you want, you can of course implement the function with HTML instead.

To active the display of Question & Answers in the autocomplete

Instead of activating autocomplete in Global settings of the Sitevision module you instead activate it with code.

<script src="https://static.rekai.se/files/sv-autocomplete.min.js"></script>
<script>
  svDocReady(function() {
    $svjq(".sv-searchform-portlet input[name='query']").rekAutoComplete({
      params: {
        entitytype: 'all'
      },
      sendToTarget: true // Click on result shall go directly to the page
    });
  });
</script>