How is the 'Related Articles' list populated?

Answered

35 Comments

  • Justin Conway

    Hey Jessie!

    Basically instead of using a generic handlebars helper:

    {{related_articles}}

    That spits out its own markup:

    <ul>
    <li>
    <a href="/hc/en-us/articles/115005687123-Help-Center-is-Retnec-pleH-backwards">Help Center is Retnec pleH backwards</a>
    </li>
    <li>
    <a href="/hc/en-us/articles/115005690503-Enage-With-Smart-Inbox">Enage With Smart Inbox</a>
    </li>
    <li>
    <a href="/hc/en-us/articles/115005643143-Torrance-California-is-a-Mecca-of-Culture">Torrance California is a Mecca of Culture</a>
    </li>
    </ul>

    I would ideally be able to write my own markup and loop through related posts like you do any other article area:

    {{#each related_articles}}
    <article>
    <h2>
    <a href="{{url}}">{{title}}</a>
    </h2>
    {{excerpt body characters=100}}
    </article>
    {{/each}}

    Let me know if you still need clarification!

    - Justin Conway

    0
  • Jessie Schutz

    Hey Justin! Let me check with some of the Community Moderators and see if they can verify whether this is possible. Stand by!

    0
  • Andrea Saez

    The related articles list is based on tags and keywords. If you want similar articles to pop up, make sure you're tagging them properly.

    If no tags are added, it looks for keyword similarity I believe, so if you want to have tighter control over what's shown, make sure you're using your own tags.

    1
  • Julie

    Is it possible to get related articles through the API somehow?

    0
  • Jessie Schutz

    Hi Julie!

    I checked our documentation at developer.zendesk.com, and I was able to find a template helper for related articles, but I don't see an endpoint. Can you tell me more about what you need to do?

    0

Please sign in to leave a comment.

Powered by Zendesk