Forums / Extensions / eZ Flow / Display comment count..
juan uribe
Tuesday 10 March 2009 3:21:38 pm
what is the correct way to code (count the number of comments) for a given article.
example http://www.lanacion.com.co/
right now I have put message "be the first to comment" (sea el primero en commentar) but this shows up all the time even if an article has many comments. I want the message to be eighther "be the first to comment" or it has 10 comments then "10 comments..."
Is this possible, thanks,
Thursday 12 March 2009 10:24:59 am
we are now using the following code
{section show=$currentnode.data_map.enable_comments.content} {let $comments=fetch_alias( comments, hash( parent_node_id, $currentnode.node_id ) )} <a href={$currentnode.url_alias|ezurl()}> {if gt($comments|count,0)} Comments ({$comments|count}) {else} Be the First to Comment this Article ! {/if} </a> {/section}
If any one has any idea on how to work with the cache system so that I don't have to manually update cache every 15 min?