Alphabet: Mystery results
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" }
{title}
{biz_tagline}
{if count=="2"}
{sn_mini_cal}
{/if}
{/exp:low_alphabet:entries}
Replies
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:
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.
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.
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.
carolinecblaker 9 Apr 2014 18:10
Ok - so you can't show entries with "s|t" in one list?
Thanks - problem solved.
Low 9 Apr 2014 18:14
Correct. But I'll add something like that to my todo-list.