Skip Navigation
Expand
"Context" attribute not working for OkcsKnowledgSyndication widget
Answer ID 9421   |   Last Review Date 01/08/2019

Why isn't the "context" attribute working for filtering answers with the OkcsKnowledgeSyndication widget?

Environment

Oracle Knowledge Advanced - all releases

Oracle Cloud Service - all releases

Resolution

The context attribute requires a specific syntax, unlike the "" (quotes) symbols used with the values set for the other attributes.

Moreover, if the syndicated widgets section from the customer portal administration page is not used to compile the widget code, then a preprocess: "pagescraper" attribute has to be added manually along with the "context" attribute, in order for the filtering to work.

Sample code:

<body>
<title>integer</title>
<h1 id="search_context">Authenic</h1>

<script type="text/javascript">
    RightNow.Client.Controller.addComponent(
        {
            div_id: "myDiv",
            context : ["title", "search_context"],
            instance_id: "okcs_0",
            module: "OkcsKnowledgeSyndication",
            content_type: "",
            type: 10,
            preprocess: "pagescraper"
        },
...

</body>

Available Languages for this Answer:

Notify Me
The page will refresh upon submission. Any pending input will be lost.