Create a list of comments attached to the article currently defined in the template environment. If the article was not defined the comments list is empty. The code between the "{{ list_article_comments }}" statement and "{{ /list_article_commnets }}" is repeated for every comment in the list.
{{ list_article_comments [ignore_language="true|false"] [ignore_article="true|false"] [length="<integer_value>"] [columns="<integer_value>"] [order="<order_condition>"] }} <list_of_instructions> {{ /list_article_comments }}
Note on ignore_article: this option will force the list order to date ordering. ignore_language and ignore_article only work in Newscoop 3.2.2 and newer.
The default order of the comments in the list (if no order condition was specified) is based on the tree structure of the comments as in the following example:
The first element in the list is the first comment that was submitted, second is it's first reply (if it exists), first reply of the first reply .. and so on down the tree structure, until it finds no other reply, second reply to the root element etc.
If the order by date condition was specified the comments are displayed strictly by their submission date, regardless of the relation they had to the other comments.
{{ list_article_comments order="byDate desc" }} Subject: {{ $gimme->comment->subject }}<br/> Posted {{ $gimme->comment->submit_date }} by <b>{{ $gimme->comment->reader_email }}</b> <br/> {{ $gimme->comment->content }} <br/> {{ /list_article_comments }}
The following example is taken from the theme "The Custodian" (2011-03-16) file comments.tpl
{{ list_article_comments }} {{ if $gimme->current_list->at_beginning }} <a name="commentlist"> <h4> {{ if $gimme->language->name == "English" }}Previous comments {{ else }}Los comentarios anteriores {{ /if }} </h4> </a> {{ /if }} <div class="comment" {{ if $gimme->current_list->at_end }} id="everlast"{{ /if }}> <p><strong>{{ $gimme->comment->nickname }}</strong><br> {{ $gimme->comment->content }}</p> <p> <em> {{ $gimme->comment->subject }} | <span>{{ $gimme->comment->submit_date|camp_date_format:"%M %e, %Y" }}</span> </em> </p> </div> <!-- /.comment --> {{ /list_article_comments }}
Inside list_article_comments the following statements are forbidden:
There has been error in communication with Booktype server. Not sure right now where is the problem.
You should refresh this page.