Page tree
Skip to end of metadata
Go to start of metadata

Here is how you can use the most commented articles feature in the template language:

List articles ordered by the number of comments descending:

#!css+smarty
{{ list_articles order="bycomments desc" }}
  <p>
    {{ $gimme->article->name }},
    comments: {{ $gimme->article->comment_count }}
  </p>
{{ /list_articles }}
  • No labels