Announcements
Hi,
I am using a custom portal and would like to add knowledge base on it in the navbar.
I tried to follow how it was done in Self-service portal by creating same records. However I come to a point where I can display category details page but can't access to an article :
HTML href tag is empty.
If we look into self-service portal, HTML href tag is filled with <a href="/knowledgebase/article/KA-01... class="title">TEST ARTICLE</a>.
How could I achieve that in custom portal ? I don't know very much about Liquid but from what I read the liquid code in the category details web template doesn't include article detail page.
Hello Alex, can you share your solution with this? I'm currently experiencing the same issue you encountered. Thanks
Hi LA,
Thank you for your reply and details for the two web templates.
It worked well after adding sitemarkers for children web pages but I am still trying to figure out how.
There is no sitemarker mentioned in web templates code for article. "category_url" seems not to be used as well.
Also, where can I find the resx content ?
Regards,
Look at what is actually being done for the Customer Self Service. There are 2 main Web templates being utilised:
Note: there are several other preconditions for the existing templates, Articles must be set to not be Internal only, Articles must be published, Articles must have at least 1 Category assigned to them, the Article language must match the Portal language, Portal user must have privileges to read category and knowledge articles.
Also, articles can be slow to sync to the Portal, and sometimes you may need to manually reset the search index (<your portal>/_services/about )
{% extends 'layout_1_column' %}
{% block main %}
{% include 'Page Copy' %}
{% assign category_url = sitemarkers['Category'].url %}
{% assign count = count | default: 0 %}
{% assign categories = knowledge.categories | top_level: count %}
{% if categories %}
{{ article.description | escape }}{% extends 'Layout 1 Column' %}
{% 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 %}
{% block main %}
{% include 'Page Copy' %}
{% assign category_url = sitemarkers['Category'].url %}
{% assign portallanguagecode = website.selected_language.code %}
{% if categoryguid %}
{% fetchxml knowledgearticlecategory_query %}
{% if portallanguagecode %}
{% endif %}
{% endfetchxml %}
{% assign articles = knowledgearticlecategory_query.results.entities %}
{% if articles.size > 0 %}
{% for article in articles %}
{% endif %}
{% include 'Category - Related Categories' categoryguid: categoryguid %}
{% else %}
Hi Leah,
Actually my question was more about configuring the knowledge base in a custom portal using Liquid, web template, web pages, snippet, site markers etc .. since the configuration is only partial. Web template for example doesn't exist, so I did create a custom web template from what I saw on the self-service portal for which knowledge is already configured.
However regarding the custom portal, I am facing an issue to display articles because of my lack of Liquid Knowledge.
So I have some difficulties to understand how knowledge base is handle in Portal.
I see this code (below) which shows how articles are displayed but I have a behavior in portal that shows nothing when clicking on a category hyperlink. The page just refreshed itself.
Do you have any idea on what I am missing ?
Regards
Hi Alex519,
In fact, just category can list on the page, you need first associate article to one category, then click this category on the portal you will see articles, just like this:
(1) open one article in customer service hub, select Associate Category.
(2) click this category on the portal.
(3) you will see:
You can refer following to Configure and manage category:
https://docs.microsoft.com/en-us/dynamics365/portals/configure-knowledge-categories-articles
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
Hello,
pls refer this link
https://docs.microsoft.com/en-us/dynamics365/portals/configure-knowledge-categories-articles
also pls refer this video,
https://www.youtube.com/watch?v=zz7mNOpkWdQ
I hope it helps,
Thanks.
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator