All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Filtering low_alphabet entries by category

Garabedium 30 Sep 2013 17:14 problem, complete

I'm having some difficulty getting exp:channel:categories working with low_alphabet:entries. My A-Z list with low entries is working perfectly, but I'm unable to filter the low entries by category (I'm not looking to filter by both az and categories, just one or the other).

I've tried hiding the alpha_filter when the /category/ segment is present, but that didn't make any difference. If I use exp:channel:entries instead of low_alphabet, the categories work as expected.

{!--Low Entries--}

{exp:low_alphabet:entries channel="zoo_visitor" group_id="6" limit="15" alpha_filter="{segment_3}" status="custom-status" parse="inward" }
<h3><a href="{title_permalink='/template/some-template/'}">{title}</a></h4>
<p> {exp:word_limit total="15"} {description} {/exp:word_limit}</p>
{/exp:low_alphabet:entries}


{!--EE Categories--}

{exp:channel:categories channel="zoo_visitor" category_group="2" show_empty="yes"}
<a {if segment_3 == category_url_title} class="active" {/if} href="{path='/template/other-template/'}">
{category_name} <span class="count">{exp:catcount cat_id="{category_id}" status="custom-status"}</span>
</a>
{/exp:channel:categories}

Replies

  1. Low 30 Sep 2013 20:04

    Try and set the dynamic parameter to "yes" when the category segment is present in the URI. So, as opening Entries tag:

    {exp:low_alphabet:entries 
    channel="zoo_visitor"
    group_id="6"
    limit="15"
    status="custom-status"
    parse="inward"
    {if segment_2 == 'category'}dynamic="yes"{/if}
    {if segment_2 != 'category'}alpha_filter="{segment_3}"{/if}
    }

  2. Garabedium 30 Sep 2013 20:20

    That worked! Thank you! Mark as solved!