I would like to display in article template (article.tpl) the topic (topics) the article is attached to, along with the number of articles in that topic. For example (number of article is in the brackets):
A long title for an artile Published in Category / Subject(s): Subject 1 (5), Subject 2 (3)
{{ /en }} {{ ro }}
Aş vrea să afişez în pagina articolului (article.tpl) subiectul (subiectele) articolului, împreună cu numărul articolelor cu acelaşi subiect. De exemplu (numărul articolelor e în paranteze):
Un titlu lung pentru articol Publicat în Categorie / Subiect(e): Subiect 1 (5), Subiect 2 (3)
{{ /ro }} {{ ru }}
Яхотел бы показатьв шаблоне статьи(article.tpl) тему(темы) статьи, наряду сколичествомстатейпо данной теме.Например (номер статьивскобках):
Длинное названиедлястатьи Опубликовано в Категории/Тема(ы): Тема1 (5), Тема2 (3)
You can display the list of topics an article is attached to by placing something like this in your article template:
{{ $gimme->article->title }} {{ list_article_topics }} {{ if $gimme->current_list->at_beginning }} Published in Category / Subject(s): {{ /if }} {{ $gimme->topic->name }}{{ if !$gimme->current_list->at_end }}, {{ /if }} {{ /list_article_topics }}
... unfortunately, there is no a direct way currently in Newscoop's template engine to display the number of articles per topic. To achieve that you would have to work around the code, if you feel like coding and contributing we could assist you :-)
Hey, as Martin suggested, use length="1" for list_articles. And you don't need that set_topic line, the current topic in the list will be used by list_articles.