Skip to main content

Notifications

Microsoft Dynamics CRM forum

Custom Portal - How to display Knowledge article from associated Category Details Web Page

Posted on by 6
Currently in my portal , From Primary category to redirecting to knowledge articles , I need to create like From primary category to Associate category from Associate category to knowledge article Please help me here

I need to display knowledge article form associate category ,currently knowledge article  is displaying from primary catergory.

Thanks in Advance.
  • Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Custom Portal - How to display Knowledge article from associated Category Details Web Page
    Hi,

    Category - Related Categories web template.

    {% assign categoryguid = categoryguid %}
    {% assign limit = limit | default: 5 %}
    
    {% assign category_url = sitemarkers['Category'].url %}
    
    {% if categoryguid %}
      {% assign relatedcategories = knowledge.categories | related: categoryguid, limit %}
      {% if relatedcategories.size > 0 %}
        <h2>{{ snippets["Category/RelatedCategoryHeading"] | default: resx['Related_Categories_DefaultText'] }}</h2>
        <ul class="list-group unstyled">
          {% for category in relatedcategories %}
            <li class="list-group-item">
              <a href="{{ category_url | add_query: 'id', category.categorynumber | escape }}" class="title">{{ category.title | escape }}</a>
              <p class="description">{{ category.description | escape }}</p>
            </li>
          {% endfor%}
        </div>
      {% endif %}
    {% endif %}
     
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Custom Portal - How to display Knowledge article from associated Category Details Web Page
    Hi,
    Like this?
    This is screenshot from my Customer Self Service portal(Dynamics 365 template).
    Maybe you can refer to the following similar thread:
    It mentions that the key lies mainly in two web templates:
    You can use the template to create a portal to get the corresponding code, or I'll copy it for you if you need it!

    I hope you can mark my answer verified if it answer your question! If you have any questions, please feel free to contact me.
    Regards,
    Leah

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Waed Ayyad!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 289,995 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 227,174 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans