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

Support archive

azlist - all letters have zero entries, but that's wrong

Sean 25 Jul 2013 23:15 problem, active

Hi Low,

I've got a low alphabet on two different sections of a site. All is working well including filtering etc.. However in the azlist tag the {low_alphabet_entries} variable is always outputting zero '0' despite there being entries. When I click the letter with the entry all is filtered correctly, however this issue is affecting styling of the alphabet list. See this code

 
<li class="{if '{low_alphabet_entries}' == '0'}none{/if}"><a href="{path="{segment_1}/{segment_2}/{low_alphabet_url}"}" title="{low_alphabet_entries}">{low_alphabet_label}</a></li>


Where the {low_alphabet_entries} is in a conditional that outputs a class so that the letter is a different color if there are no entries.

I also changed the show_empty parameter to no and then no letters were displaying.

Please advise.

Replies

  1. Low 26 Jul 2013 08:29

    Hi Sean,

    Can't replicate. What is your full opening tag for the AZ list? And what's the version?

  2. Sean 26 Jul 2013 13:18

    EE 2.6.1
    LA 1.0.9

    full azlist tag

     
    {exp:low_alphabet:azlist channel="business_directory" alpha_field="title" alpha_ignore="the|a" numbers="no" status="open" show_empty="yes"}
    {if count == 1}<ol id="alpha-select">
    <li><a href="{path="{segment_1}/{segment_2}"}" title="All">All</a></li>
    {/if}
    <li class="{if '{low_alphabet_entries}' == '0'}none{/if}"><a href="{path="{segment_1}/{segment_2}/{low_alphabet_url}"}" title="{low_alphabet_entries}">{low_alphabet_label}</a></li>
    {if count == total_results}</ol>{/if}
    {/exp:low_alphabet:azlist}

  3. Low 27 Jul 2013 08:51

    Still cannot replicate. Your exact code works fine on my EE261/LA109 combo. Guess I'll have to take a look myself. Can you send the usual login credentials to hi at gotolow dot com?