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

Support archive

Alphabet: Mystery results

carolinecblaker 31 Mar 2014 23:30 problem, complete

http://dev-vsf.santafe.com/restaurants

Click "Alphabetical" and then choose "S" and "T" - a listing called "Blue Corn Brewery" appears, that doesn't match either letter anywhere. Are you able to explain this?

Here's my code: (note AJAX POST vars) - use inspector when looking at link

{exp:low_alphabet:entries channel="business" category_group='' status="HomeFeatured|featured|open" orderby="random" limit="50" alpha_filter='' search:biz_featured="not IS_EMPTY" }


place icon
Feature Listing
{title}
{biz_tagline}

{if count=="2"}
{sn_mini_cal}
{/if}
{/exp:low_alphabet:entries}

Replies

  1. Low 1 Apr 2014 07:21

    Low Alphabet expects a filter indicator to be present in the URI, and that should be passed on to the alpha_filter="" parameter. The opening tag should then look something like this:

    {exp:low_alphabet:entries 
    channel="business"
    status="HomeFeatured|featured|open"
    limit="50"
    search:biz_featured="not IS_EMPTY"
    alpha_filter="a"
    orderby="title"
    }


    Here, the alpha_filter="" param will look at the fields given in the orderby="" param, and only show entries where that field starts with the given alpha_filter.

    In your code, I can't see how LA would know what to filter by. Also, I'm not 100% sure ordering the entries randomly will work in conjunction with LA.

  2. carolinecblaker 2 Apr 2014 17:48

    Sorry, alpha filter is the php post var, and the detail of that is in the console. It appears to work until "s|t" is the option, when Blue Corn shows up.

  3. Low 2 Apr 2014 18:22

    Wait, are you expecting the alpha_filter="" to take more than 1 value? Because it only takes a single letter.

    You can test if it works properly by hard-coding the single letter in the alpha_filter param an see if the correct entries show up.

  4. carolinecblaker 9 Apr 2014 18:10

    Ok - so you can't show entries with "s|t" in one list?

    Thanks - problem solved.

  5. Low 9 Apr 2014 18:14

    Correct. But I'll add something like that to my todo-list.