How is the 'Related Articles' list populated?
回答済みI'm new to ZenDesk and am populating a knowledgebase from our old Wiki. As I've been going along, I've noticed that the 'Related Articles' heading has appeared, and is populated with links to other articles. How are these entries determined? The ones that are appearing aren't really helpfully related to the current article they appear in - they seem to be the previous or next article, or a seemingly random article from those I've made. I'd also love to be able to add my own set of entries of related articles in that section.
Thanks,
James
-
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
-
Hey Justin! Let me check with some of the Community Moderators and see if they can verify whether this is possible. Stand by!
-
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.
-
Is it possible to get related articles through the API somehow?
-
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?
投稿コメントは受け付けていません。
35 コメント