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 appearing

June 02, 2012 2:33am

Subscribe [1]
  • #1 / Jun 02, 2012 2:33am

    Reverie123

    47 posts

    Hello,

    Recently I have been trying to get comments to work on “single entry” pages. I assume that is just a page that has a single entry using something like entry_id or url_title (how I am doing it) in the entry tag. I can’t see what I am doing wrong, do I have to nest the comment tags within the entry tag? Anyways, let me post up what I have:

    {exp:comment:entries channel="news_page" limit="20" url_title="{segment_1}"}
            <div class="comment" id="comment_{comment_id}">
                    <span class="comment_body">
                            {comment}
                    </span>
    
                    {if editable}
                            <a href="#" class="edit_link">Edit</a>
    
                            <div class="editCommentBox">
                                    <textarea cols="70" rows="8">{comment_stripped}</textarea><br >
                                    <input type="submit" name="cancel" value="Cancel" class="cancel_edit">
                                    <input type="submit" name="save" value="Save" class="submit_edit">
                            </div>
                    {/if}
    
                    {if can_moderate_comment}
                    <a href="#" class="mod_link">Close</a>
                    {/if}
            </div>
    {/exp:comment:entries}

    It looks right, but the documentation says use url_title_path variable or the entry_id_path for a “single entry” page. However I have read other sources that url_title is fine also. Anyways, the documentation is usually pretty confusing—or worded strangely. It seems so simple, and I feel stupid, anyone tell me what I am doing wrong?

  • #2 / Jun 02, 2012 8:26am

    Reverie123

    47 posts

    Resolved

  • #3 / Jun 04, 2012 1:04pm

    Shane Eckert

    7174 posts

    Hey Reverie123,

    Ha! Glad to hear it!

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases