Hi,
Really enjoying using Couch, it has made developing site very quick and its very intuitive. I have stumble across a bit of a problem though and I can't seem to find any reference to it in the docs.
I'm trying to output a list of comments for a given article, this is all working fine until I try to paginate them. It seems that if I set the limit to higher than the number of submitted comments it is refusing to output any at all.
here is the code I am using to output my comments:
I'm still fairly new to couch so i'm not sure if I have my nesting of the <cms> tags quite right. Any help would be greatly appreciated.
Really enjoying using Couch, it has made developing site very quick and its very intuitive. I have stumble across a bit of a problem though and I can't seem to find any reference to it in the docs.
I'm trying to output a list of comments for a given article, this is all working fine until I try to paginate them. It seems that if I set the limit to higher than the number of submitted comments it is refusing to output any at all.
here is the code I am using to output my comments:
- Code: Select all
<div >
<h4><cms:show k_comments_count /> Comments added</h4>
<cms:if k_comments_count>
<ol>
<cms:comments page_id=k_page_id limit='20' order='asc' paginate='1'>
<li>
<div>
<cms:gravatar email="<cms:show k_comment_author_email />" size="71" />
<a name="<cms:show k_comment_author_anchor />">
</div>
<div>
<div>
<span><cms:show k_comment_author /></span>
<span><cms:date k_comment_date format='F j, Y' /></span>
</div>
<div>
<cms:show k_comment />
</div>
</div>
</li>
</ol>
</cms:if>
<cms:if k_paginated_bottom>
<div class="tf_resources_pagination clearfix">
<cms:if k_paginate_link_prev>
<a href="<cms:show k_paginate_link_prev />">< Previous Comments</a>
</cms:if>
<cms:if k_paginate_link_next>
<a href="<cms:show k_paginate_link_next />">Next Comments ></a>
</cms:if>
</div>
</cms:if>
</cms:comments>
</div>
<cms:else />
No Comments
</cms:if>
I'm still fairly new to couch so i'm not sure if I have my nesting of the <cms> tags quite right. Any help would be greatly appreciated.