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.

Having trouble with the "exp:comment:entries" tag

March 29, 2011 2:14pm

Subscribe [6]
  • #1 / Mar 29, 2011 2:14pm

    SunCSeeker

    15 posts

    The following piece of code does not filter out the comments by channel; it displays all the comments from all the channels. Also, even though I have specified a descending sort by date, it lists the oldest comments first. Am I doing anything wrong or is there a bug in the code?

    Thanks

    Comments

                 
    {exp:comment:entries channel="blogs" limit="50" sort="desc" orderby="date" dynamic="off"}
    ”{exp:trunchtml chars="30" inline="..." }{title}{/exp:trunchtml}” by {name} on {comment_date format='%m/%d'} at {comment_date format='%h:%i %A'}{exp:trunchtml chars="50" inline="..." }{comment}    {/exp:trunchtml}
    {/exp:comment:entries}

  • #2 / Mar 29, 2011 4:20pm

    Jason Ferrell

    33 posts

    Is this code on a single entry page? Also, is the code above inside an exp:channel entries tag?

  • #3 / Mar 30, 2011 7:25am

    Greg Salt

    3988 posts

    Hi SunCSeeker,

    As Jason has asked, where is this code in relation to other code on your template? Also, which version of EE are you using?

    Cheers

    Greg

    @Jason, thanks for the help.

  • #4 / Mar 30, 2011 1:56pm

    SunCSeeker

    15 posts

    This code is inside a snippet. This snippet gets included in a single as well as in a multi-entry page. The multi-entry-page lists up to 50 of the latest blog entries; the single-entry list a particular blog along with all its replies.

    The code is not inside an exp:channel entries tag.

  • #5 / Mar 31, 2011 6:04pm

    Sue Crocker

    26054 posts

    Hi, SunCSeeker.

    Taking snippets out of the equation for the moment - what exactly are you trying to accomplish? Can you give me a sample URL where this code is going to be running?

  • #6 / Apr 01, 2011 7:58am

    SunCSeeker

    15 posts

    {exp:comment:entries channel=“blogs”  limit=“50” sort=“desc” orderby=“date” dynamic=“off”}

    The above mentioned code is supposed (as per documentation) to return the comments for the specific channel viz., blogs; but it does not do so. It returns the results for all channels in the system. Sounds to me like a bug.

    - Sundar

  • #7 / Apr 01, 2011 2:30pm

    Jason Ferrell

    33 posts

  • #8 / Apr 03, 2011 3:52pm

    Greg Salt

    3988 posts

    Hi SunCSeeker,

    Can you please clarify which version of EE you are using?

    Cheers

    Greg

  • #9 / Apr 18, 2011 11:37pm

    Brad Parscale

    196 posts

    I am having this exact same issue. Comments with dynamic=“no” gives me all comments and order/sort/channel are all ignored.

    Is this a known bug?

    Brad

  • #10 / Apr 19, 2011 1:23pm

    Brandon Jones

    5500 posts

    SunCSeeker and Brad,

    Which version and build of EE are you using?

  • #11 / Apr 19, 2011 1:37pm

    Brad Parscale

    196 posts

    Current version of EE 2.1.3. I couldn’t make it work, was forced to use a standard query.

    Brad

  • #12 / Apr 19, 2011 1:39pm

    Brandon Jones

    5500 posts

    Hmm, how about you, SunCSeeker? Version and Build?

  • #13 / Apr 19, 2011 1:43pm

    Brad Parscale

    196 posts

    Super simple to reproduce. Blank install 2.1.3 add comments. In the root stick the tag, make dynamic=“no”.. Everything stops working, sort, order, channel…

    Brad

  • #14 / Apr 19, 2011 4:29pm

    Sue Crocker

    26054 posts

    When you say in the root, do you mean from a single entry template?

  • #15 / Apr 19, 2011 4:53pm

    Brad Parscale

    196 posts

    Sorry, that is just Parscale talk… I mean a single template…

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

ExpressionEngine News!

#eecms, #events, #releases