Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

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.
  • CU20051444-0 Profile Picture
    CU20051444-0 6 on at
    Custom Portal - How to display Knowledge article from associated Category Details Web Page
    Hi @leah ju

    Thanks for the Response,

    Same code already present in the Related categories in my portal app.

    Thanks.
  • 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 %}
     
  • CU20051444-0 Profile Picture
    CU20051444-0 6 on at
    Custom Portal - How to display Knowledge article from associated Category Details Web Page
    Hi @leah ju Thanks for you Response

      -  The link which you posted it contain the code for Category to knowledge article, 
      - I am Looking for Category to Associated category and form Associated category to knowledge article code ,Can you help me to get this code please.

    ​​​​​​​I am New to this please guide me.

    Thanks in Advance

      
  • 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

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,663 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,750 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans