Community topic page - show the name of the last user that commented.
回答済みCurrently, on the Community topic page I can see:
- the post name - linked to the post page
- the name of the user that started that post
- the time when the post was last updated
What I would like is to have the name of the user that made the last comment to that post listed after the time passed since it was updated. See the dots .... in the screenshot attached.
<ul class="meta-group">
<li class="meta-data">{{author.name}}</li>
<li class="meta-data">{{date updated_at timeago=true}} by ....</li>
</ul>
How can I get that name?
Thank you for your help.
Julian
-
Hi Julian, I think this is not possible for now, cause there is no Zendesk API endpoint with that info:
https://developer.zendesk.com/rest_api/docs/help_center/posts -
Hey Julian!
@Vladan Bearing in mind that I am no API expert, I'm wondering if one would be able to use the user info in the Post Comments part of the API? What do you think? Would that even work?
-
Hey Jessie, you are 100% right. With that part we can grab comments from a post, but API will provide us only author ID, not name/surname.
With the help of this https://developer.zendesk.com/rest_api/docs/core/users we can use that ID to grab that name/surname, but it will work only for admins/agents, so probably it's not what Julian is looking for. :/
Edit:
I see that post comments api part doesn't work for end-user/anonymous too. -
Well, nuts. Thanks for looking at it, though!
-
I really like this idea, Julian! I understand that there's no such workaround is available for now, but I hope this can be looked into soon. Thanks to Jessie and Vladan for looking!
-
This thread has been closed for comments by the Zendesk Community Team. If you have a related or new question, please create a new post.
投稿コメントは受け付けていません。
6 コメント