I'm making a filter functionality where the user can do a keyword search and sort by "Newest", "Most viewed" and "Most pinned". I'm using Low Search to do the search, Solspace Tracker for counting views, and Solspace Favorites to let the user pin content.
My approach to get the results is to first do the search with Low Search (if the user did a keyword search) and stash away the resulting id's. Then insert the id's into the entry_id parameter. This works great when I use {exp:channel:entries} and {exp:tracker:rank}, but not with {exp:favorites:rank}. Here's a stripped down example of my code:
{exp:favorites:rank
entry_id="{exp:stash:get name='search_result_ids'}"
show_unfavorited="yes"
orderby="count"
channel="article"
limit="10"
pagination="bottom"
parse="inward"}
entry_id = {entry_id}<br>
{/exp:favorites:rank}
Even if I harcode id's into the entry_id parameter, all entries are being returned. Is this a bug, or intended behavior? It says in the documentation that "Most of the parameters available in the Channel:Entries loop are available here", which really isn't much help. "Most of" could mean that entry_id isn't one of them, but who knows? :)