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.

Comments not working

July 28, 2010 8:55am

Subscribe [2]
  • #1 / Jul 28, 2010 8:55am

    Digitaal Dier

    75 posts

    Hi guys,

    I’m trying to set up Comments for my weblog-channel (http://www.digitaaldier.nl/weblog),, but something weird is happening. i’ve included if no_results, but the content that should appear doesn’t. Here’s the code I use for displaying comments:

    <h2 id="comments">Commentaar</h2>
                    Ben ermee bezig!
                    {if no_results}
                    Nog niks… Lekker rustig is 't hier h&eagrave;?{/if}
                    {exp:comment:entries sort="asc" limit="20"}
                    {comment}
                    Op {comment_date format="%d-%m-%Y"} door {name}
                    {/exp:comment:entries}

    Any thoughts?

  • #2 / Jul 28, 2010 2:25pm

    lebisol

    2234 posts

    {if no_results} need to be inside the {exp:comment:entries} tag.

    {exp:comment:entries….}
    {if no_results}...No Comment…I plea the 5th{/if}
    otherwise here are the comments…
    {/exp:comment:entries}
  • #3 / Jul 28, 2010 4:15pm

    Digitaal Dier

    75 posts

    Thnx, did the trick… thought I’d already fixed that…

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

ExpressionEngine News!

#eecms, #events, #releases