Low Search Calendar Absolute Results or Event Total
Hi there,
We're using the Low Search Calendar extension and everything works beautifully except we did notice that the {absolute_results} tag wasn't being output as expected (i.e. the total results for the search regardless of event_limit). We tried {event_total} and that didn't work either.
{absolute_results} not parsed at all
{event_total} only showing the total results for the page (instead of absolute results)
Low Search Calendar 1.0.2
Low Search 4.3.1
Solspace Calendar 1.8.13
Let me know if you need any additional information!
Kristine
Replies
Low 12 Nov 2015 20:39
Depending on the calendar:method="" you're using, you can use any of the variables made available by Solspace Calendar's corresponding tag. Check Solspace's docs to see which vars those are. https://solspace.com/software/express...
Kristine 12 Nov 2015 22:28
Originally I was using the calendar:method="cal" parameter, but the {event_total} variable from the docs wasn't outputting the total results from the entire search (it was outputting the total results from the page).
I just switched to the calendar:method="events" parameter to see if there was a variable there I could use. {event_timeframe_total} doesn't give the expected number either not exactly clear why. The docs say that most variables available in the Channel:Entries loop are available here but similarly to calendar:method="cal" I can't get {absolute_results} to work.
Low 13 Nov 2015 09:18
By default, the low_search:results tag extends the channel:entries tag, making all params and vars that are available there, available in the Results tag.
If you use calendar:method="cal", the Results tag will extend the calendar:cal tag instead, which means you can use all vars available in the Cal tag.
If you use calendar:method="events", the Results tag will extend the calendar:events tag instead, which means you can use all vars available in the Events tag.
If there is no equivalent to {absolute_results} in either of those tags, I would ask Solspace for a solution here. Not much Low Search can do about that, I'm afraid.
Kristine 13 Nov 2015 15:50
Thanks Low! I'll check with Solspace to see if they have any ideas
Kristine 13 Nov 2015 18:01
Figured out that {event_timeframe_total} can be used in the calendar:cal method and it was able to provide what I needed. Thanks again for your help, Low!