{absolute_results} Returning Wrong Number
I have 5 "passed" entries that meet these tag parameters, but the "{absolute_results}" variable is returning the limit (3), not the total number of results (5):
{exp:low_events:entries
channel='resources_webinars'
dynamic='no'
limit='3'
disable='categories|member_data|pagination'
search:webinars_featured='=not_featured'
search:webinars_recorded='not IS_EMPTY'
unit='passed'
}
{if count == 1}
<div class="heading clearfix">
<h3>Recorded Webinars</h3>
</div><!--/.heading-->
<ul class="items webinars resetlist">
{/if}
<li class="clearfix">
<article>
<a href="{page_url}" class="preview">
<figure>
{exp:ce_img:single
src='{webinars_thumb}'
width='210'
height='100'
crop='yes'
allow_scale_larger='yes'
alt='{title} preview'
}
</figure>
</a>
<div class="text clearfix">
<header>
<h4><a href="{page_url}">{title}</a></h4>
</header>
<p>{webinars_summary}</p>
<footer>
<a href="{page_url}" class="btn-ui action">Watch Now</a>
</footer>
</div><!--/.text-->
</article>
</li>
{if count == total_results}
</ul>
{if absolute_results > 3}
<p class="learn-more clearfix"><a href="{path='resources/webinars/recorded'}">View All Recorded Webinars »</a></a>
{/if}
{/if}
{/exp:low_events:entries}
EE 2.5.5
Low Events 1.1.3
Replies
Low 19 Apr 2013 17:26
EE is quirky that way. You need to enable pagination and add an (empty) pagination var pair to get the correct value for {absolute_count}. The same is true for the native channel:entries tag.
kgrote 19 Apr 2013 17:43
Wow, that's damned annoying. Thanks for the tip!
danherd 2 Oct 2013 10:53
I found that:
didn't work but:
did - i.e. you need a space (or a tab or a newline or any whitespace) between the two tags.
Sheesh, EE. Sheesh.
Ryan 29 Apr 2015 20:16
Thank goodness for posts like this one.