Clear filter item
Thanks for the great extension. I've been hoping for something like this for a long time, so you've made me very happy!
One little question, though: is there any way to add a filter item for "all" entries in the {exp:low_alphabet:azlist} tag? By that I mean I'd like to have the list include all the letters of the alphabet and an "all" item that would clear the alphabetical filter when a user clicks it.
The behaviour I'm thinking of is that a user might want to click several letters to view items that start with that letter, and then click "all" (or "clear" or "remove filter" or something) to view all of the entries in an unfiltered view. I have already added that kind of link outside the Low Alphabet list, but it would be much neater and less likely to confuse people if Low Alphabet was able to include this as an (optional) item in the list it generates.
For example: ALL | A | B | C | D | ETC, ETC ...
As for implementation, my first thought is parameters something like clear="ALL" and clear_position="first|last|both" that could be added to the {exp:low_alphabet:azlist} tag.
I hope I'm not just overcomplicating things, and that all this not only makes some kind of sense but is also something that you might consider adding to what is already a great add-on!
Thanks for listening
Andrew Macpherson
Replies
Low 3 Mar 2011 14:39
Hey Andrew,
If you want to add a 'remove filter' link, you could add it inside the azlist tag like in this pastie.
I think that might be the simplest way of doing it, actually...
Andrew Mac 3 Mar 2011 14:50
Actually, you're right! And now that I think about it, I remember that I've even done exactly that kind of thing once or twice before ...
So thanks for doing the thinking for me, and sorry my brain wasn't too clear tonight. I think it just might be time for bed ;-)
Cheers
Andrew
Low 3 Mar 2011 14:53
Cool. And you're welcome!