Forum for discussing general topics related to Couch.
7 posts Page 1 of 1
I want to show the comments made by the user in his profile page

Code: Select all
<cms:comments masterpage='blog.php' limit='5' paginate='1'>
   <cms:if k_comment_author_id = k_extended_user_id >   
      <cms:show k_comment_page_title /><br><cms:show k_comment />   
   </cms:if>

<cms:paginator />   
</cms:comments>


This code does not work!
Nothing appears because cms:paginator trying to show comments from all users.
Could there be a decision?
Thanks
Before paginator gets into the play, comments must be fetched only from the user.
If you gonna have multiple comments and a lot of users, then it will be extremely beneficial to let database index the user_id column and serve it much faster.
k_comment_link is missing, since it's generated by cms:comments. So, filling this gap is not a problem for us:

Code: Select all
<cms:link masterpage=k_template_name page=k_comment_page_name />?comment=<cms:show id />
Thanks for the quick response :)
orbital wrote: Thanks for the quick response :)

Does the solution work? Any comments??
You won the "most stupid feedback of the week" award. :cry:
Does the solution work? Any comments??
You won the "most stupid feedback of the week" award. :cry:


Why for week, maybe a year? Nah
I had to do more tests. I think everything is fine - thank you!
7 posts Page 1 of 1
cron