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?