A-Z entries filtering not working
Low Alphabet newbie here with a problem and a question:
From the Low Alphabet docs and forum posts, I've arrived at the following code to set up an A-Z list and filter entries accordingly. I'm getting the A-Z list and entries, but the entries aren't getting filtered. I tried using dynamic='no' with no success.
Q: Also, is it possible to limit the A-Z list based on member group_id? If I specify 'group_id', A-Z list still counts all member entries from all groups, instead of just those member entries from group_id x. (group id filtering works with low_alphabet:entries).
Any help much appreciated!
{!--A-Z List--}
{exp:low_alphabet:azlist channel="zoo_visitor" alpha_field="title" alpha_ignore="the|a" numbers="no" status="not closed" show_empty="yes"}
{if count == 1}<ul class="inline-list">
<li><a href="{path="{segment_1}/{segment_2}"}" title="All">All</a></li>
{/if}
<li>
{if '{low_alphabet_entries}' == '0'}{low_alphabet_label}{if:else}<a href="{path="{segment_1}/{segment_2}/{low_alphabet_url}"}" title="{low_alphabet_entries}">{low_alphabet_label}</a>{/if}
</li>
{if count == total_results}</ul>{/if}
{/exp:low_alphabet:azlist}
{!--Entries --}
{exp:low_alphabet:entries channel="zoo_visitor" group_id="6" status="not closed" parse="inward"}
<h3><a href="{title_permalink='/some-template/entry/'}">{title}</a></h4>
<p> {exp:word_limit total="15"} {entry_description} {/exp:word_limit}</p>
{/exp:low_alphabet:entries}
---
I'm running EE 2.6.1 and Zoo Visitor 1.3.29.
Replies
Low 28 Sep 2013 20:26
Don't forget the alpha_filter="" parameter in the low_alphabet:entries tag.
All available filters for the AZ list are mentioned in the docs. That doesn't include group_id at the moment, I'm afraid.
Garabedium 28 Sep 2013 20:55
Do'h, alpha_filter did the trick, should have spotted that. Thank you for the quick reply!
Can I put in a feature request for group_id filter? Would there be any other way of doing it?
Thanks again.
Garabedium 28 Sep 2013 21:53
Ah, nm regarding workaround. Zoo Visitor uses statuses for different member groups, filtering by status works just as well!
Hopefully this helps someone else w/Zoo Visitor in the same situation:
status="your-specific-member-status"
Thanks! Consider this thread closed :)