comment limit

I include one comment funtion in File/all page

                       $comment  = elgg_view_comments($file);

with the help of this function I can able to get and posting comments ,but it has no limitation if we added comments it comming next...., but i want latest 3 comments in that page and we click "More" i want to show all the comments.

[sorry 4 my english]

  • where should i include this code

    (@include($CONFIG->actions[$action]['file']))

  • 1. Set pagination to true and set the max number of entries to 3. This will be the easiest. If you want the former twitter like 'Load more' functionality, you would need to do that via custom AJAX calls.

     

    2. What are you trying to do? To define a new action, you should register the action on start.php of the plugin.

     

    Please avoid double posting.