AZ show_empty not working
Hi Low,
I'm using Low Alphabet 1.08 and the following code
{exp:low_alphabet:azlist channel="vendors" alpha_field="{biz_city}" show_empty="no"}
{if count == 1}<div id="alphafilter"><h3>Browse by City</h3> <a href="/firewood/all/">All</a>{/if}
<a href="{path="firewood/{low_alphabet_url}"}/">{low_alphabet_label}</a>
{if count == total_results}</div>{/if}
{/exp:low_alphabet:azlist}
but the show_empty parameter is behaving weirdly. I don't have any entries for the letters Q, X, Y & Z. The A-Z list correctly leaves out X & Y, but Q & Z are displayed. I checked the exp_channel_data table directly just to make sure I'm not overlooking any Q or Z entries, and there really are none.
Any thoughts on a fix?
Thanks!
Paula
Replies
Low 4 Apr 2012 15:58
Hi Paula,
First off, the alpha_field parameter should contain the short name of the field, without curly brackets, so:
Can you try that and see if that solves the issue?
PDM 4 Apr 2012 16:01
Wow, a 30-second response time and the fix all in one. You rock! Thanks Low :)
Low 4 Apr 2012 16:02
No problem. Glad it worked out. :)