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

Support archive

Low Alphabet Not displaying entries when filtering for "n" or "y"

Sean 16 May 2013 15:47 problem, complete

EE 2.5.5
Low Alphabet 1.0.9

Low, I've got everything working fine with Low Alphabet except that entries that meet the filter for "n" or "y" are not showing up, instead I get zero content.

Here is my relevant template code.

 

{exp:low_alphabet:azlist channel="zoo_visitor" alpha_field="member_lastname" alpha_ignore="the|a" numbers="after" group_numbers="yes" numbers_label="#" status="Consultants-id7"}
{if count == 1}<ol id="alpha-select">{/if}
<li><a href="{path="consultants/{low_alphabet_url}"}" title="Consultants: {low_alphabet_entries}">{low_alphabet_label}</a></li>
{if count == total_results}</ol>{/if}
{/exp:low_alphabet:azlist}



 

{exp:low_alphabet:entries
channel="zoo_visitor"
alpha_ignore="the|a"
numbers="after"
group_numbers="yes"
numbers_label="#"
alpha_filter="{segment_2}"
orderby="member_lastname"
sort="asc"
disable="categories"
status="Consultants-id7"
member_group="7"
parse="inward"
}

{if count == 1}<ul id="alphabet">{/if}

<li>
<article>
<h3><a href="{comment_url_title_auto_path}">{member_firstname} {member_lastname}</a><span class="location">{mbr_location}</span></h3>

more code here

{if low_alphabet_footer}
{/if}

</li>

{if count == total_results}</ul>{/if}

{/exp:low_alphabet:entries}

Replies

  1. Low 17 May 2013 09:22

    Strange. I've seen this before: EE automatically changes a parameter value "y" to "yes" and "n" to "no" (*rolls eyes*), but I change that back. Means I cannot replicate. Any chance I can take a look myself? Send the usual login stuff to the usual email address.

  2. Sean 17 May 2013 14:10

    email sent

  3. Low 17 May 2013 14:40

    The email I sent you back, for visibility: -- you're using Switchee to check for {segment_2}...

    It's a Switchee problem (or EE problem, really). Looking at the template debugger, the Low Alphabet Entries tag isn't even called to begin with when {segment_2} is n or y. This probably is because of what I mentioned earlier in the thread: EE converts y to 'yes' and n to 'no' when found in a parameter value.

    I changed the Switch statement to {case value="#^P(\d+)$#|''|#^[a-z]$#|yes|no"}, which takes that into account, and now it looks to be working.

  4. Sean 17 May 2013 14:44

    Thanks Low, didn't realize that I needed to adjust the switchee regex.