Who posted the latest comment
Sometimes you might want to display who posted the latest comment for a given article. Here’s how you do it:
In your article form
<txp:if_comments> <p>[<txp:comments_count />] Latest comment by <txp:comments form="comment_poster" sort="posted desc" limit="1" /></p> </txp:if_comments>
if_comments conditional checks for any comments associated with this article. If there are comments, display the latest comment using the
Create comment_poster form
<txp:comment_name link="0" />
Place the above in a new form titled comment_poster and save as type comment.
Thanks to Els for the inspiration and code.