Has anyone encountered this recently?
Our Knowledge Base was working fine in all environments. We had all configured and setup. We are using the ootb Knowledge Base and then suddenly it broke - stopped working - when clicking on any of the categories. The Page was showing the default text ' The requested Knowledge article is unavailable. Please contact your Portal Administrator.'
But if we browse to a KB Article URL the article was visible on the Portal - so something was wrong with the Category Details Page.
After much troubleshooting and successfully interrogating the fetch xml of the Category Details Web Template - there were knowledge articles results - I found that this section of the Web Template was not working:
{% block breadcrumbs %}
{% assign categoryid = request.params['id'] %}
{% if categoryid %}
{% assign category = knowledge.categories | category_number: categoryid %}
{% if category %}
{% assign pagetitle = category.title %}
{% assign categoryguid = category.categoryid %}
{% else %}
{% assign pagetitle = resx["Knowledge_Article_Unavailable"] %}
{% endif %}
{% endif%}
{% include 'Breadcrumbs' title: pagetitle %}
{% endblock %}
{% block title %}
{% include 'Page Header' title: pagetitle %}
{% endblock %}
It was not rendering / running so that when the next block main tried to use those values (categoryguid etc) they were not present. To fix I have just dropped the contents of block breadcumbs into block main. The Category Details page is then showing a list of articles related to the given category, as expected.
We have been using the new Power Pages Design Studio so I wonder if something went awry with this page when we used it in the Design Studio. The Category Details page is still using the installed Page Template Category Details (and not the Design Studio Default studio template).
Thanks!