The Newscoop internal statistics mechanism keeps track of the latest comments, and this mechanism can be used to create a list of the ten most recent comments on the site for all articles. The following code snippet is taken from The New Custodian's front page, from the sub-template _tpl/sidebar-most.tpl
Here is a screenshot:
This code snippet will:
{{ list_articles length="5" ignore_issue="true" ignore_section="true" order="byLastComment desc" constraints="type is news" }}
<li>{{ list_article_comments length="1" order="bydate desc"}}<b>{{ if $gimme->comment->user->identifier }}
<a href="http://{{ $gimme->publication->site }}/user/profile/{{ $gimme->comment->user->uname|urlencode }}">{{ $gimme->comment->user->uname }}</a>
{{ else }}
{{ $gimme->comment->nickname }} {{ #anonymous# }}
{{ /if }}</b>{{ /list_article_comments }} on <a href="{{ uri options="article" }}">{{ $gimme->article->name }}</a></li>
{{ /list_articles }}
Here is another example which will do the following:
{{list_article_comments length="10" ignore_article="true" order="byDate desc"}} <a href="{{url}}#comments">{{$gimme->article->name}}</a><sup>{{$gimme->article->comment_count}}</sup> <p>{{$gimme->comment->content|truncate:400}} <span>{{$gimme->comment->submit_date|camp_date_format:"%H:%i"}}</span></p> {{/list_article_comments}}
Finally, here is a similar, but more limited approach. We will:
{{ list_articles length="10" order="byLastComment desc" ignore_issue="true" ignore_section="true" }} <a href="{{ url }}#comments">{{ $gimme->article->name }}</a><sup>{{ $gimme->article->comment_count }}</sup> {{ /list_articles }}
To learn more about listing comments for one specific article and providing the comment form, read the chapter on Article Comments.
There has been error in communication with Booktype server. Not sure right now where is the problem.
You should refresh this page.