ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Comment module - results blank

January 20, 2011 4:58pm

Subscribe [3]
  • #1 / Jan 20, 2011 4:58pm

    David M

    3 posts

    I have some experience building sites in EE, but believe it or not I haven’t had a need to build a simple blog using EE… until now. I’m trying to build the template for a blog index page that simply shows the last 10 entries. One piece of data I want to display beneath each entry (on the index page), is the number of comments received. This is in EE 1.6.9.

    To keep it simple, I tried this:

    {exp:comment:entries}
    {absolute_count} comments
    {/exp:comment:entries}

    The results come back completely blank—the entire paragraph element and all the text inside is missing from the source.

    I’ve tried this both inside of the {exp:weblog:entries} tag and outside of it. I’d tried adding weblog and entry_id parameters to the {exp:comment:entries} tag but nothing seems to have an effect. Comments are enabled for the weblog, as well as the individual entry. I would expect it should tell me that there are zero comments.

    I must be missing something really simple…

  • #2 / Jan 21, 2011 9:27am

    Ingmar

    29245 posts

    Try {comment_total}. It’s part of {exp:weblog:entries}, no need to invoke {exp:comment:entries}.

  • #3 / Jan 21, 2011 12:10pm

    David M

    3 posts

    Thanks, Ingmar. That seems to just work just fine for showing the number of comments on the index page.

    However, when I try to use {exp:comment:entries} on the page that shows just the specific blog entry and its comments, the same behavior is exhibited—that is, nothing between {exp:comment:entries}...{/exp:comment:entries} is output in the source. I’ve tried including or removing various parameters, with no success.

    (I can successfully add a comment form and submit a comment. The count is updated properly on the index page, but {exp:comment:entries} still appears to choke on the entry page.)

  • #4 / Jan 22, 2011 2:12pm

    Greg Salt

    3988 posts

    Hi David,

    Can you please let us know the URI that this comment is supposed to be on and whether the last segment is a URL Title or not. Also, please post the code you are using for your comment entries tag.

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases