Discussion filter in groups

Hello!

I'm trying to create a filter for the discussions in a group. So that all the group related discussions can be sorted after newest, most comments or popular ( i'm using the like-plugin). What i found is "discussion_handle_list_page($guid)". If i add to the $params something like this: 'filter' => $filter, some filter buttons appear, but not what i want. With the help of this:

http://reference.elgg.org/page_2layouts_2content_2filter_8php_source.html

i created a new filter right in the discussion_handle_list_page function. But i don't know what to put into the href field. The second problem is that if i register my new filter, they are just added to some others. How can i remove some items from the filter?

Thanks! manu

 

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking