I'm trying to pre-fetch the number of results available per year for a specific category of articles.
The loopee module allows me to loop from current year back to 1999. I would like to show a filter available (possibly with the number of entries available) only if there are results for that specific year and that specific category.
Example:
Sports
{exp:channel:categories channel="articles" style="linear"}
<h1>{category_name}</h1>
{exp:loopee forint="{current_time format="%Y"}" to="1999" by="-1" parse="inward}
{exp:low_search:filters query="{segment_3}"}
(IF) ONLY SHOW FOLLOWING CODE IF THERE ARE ENTRIES AVAILABLE
<span>
<a href="{low_search:url collection="articles" category="{category_id}" search:anno="{loopee_value}"}">{loopee_value}(X) | </a>
</span>
(/END IF)
{/exp:low_search:filters}
{/exp:loopee}
{/exp:channel:categories}