[support] Views filter alphabetical range

Rakesh Kumar rakesh.drupaldeveloper at gmail.com
Wed Aug 22 17:57:30 UTC 2012


Create a Glossary view. This  view. is created by default.

On Wed, Aug 22, 2012 at 9:33 PM, toon severijns <toon.severijns at gmail.com>wrote:

> Thanks a lot Ted!
>
> I've followed your advise and i've got the computed field to work. I can't
> seem to bring out the computed field as radio buttons with better exposed
> filters though as it's a text field. Maybe facets could be a solution.
>
> Best,
>
>
> Toon
>
>
> On Tue, Aug 21, 2012 at 9:35 PM, Ted <ted-drupalists at webfirst.com> wrote:
>
>>
>> It might be easiest to use computed_field to store the appropriate range
>> value on the node. Then override the views-exposed-form.tpl.php if you need
>> the buttons to really be buttons. You could always get fancy with JS and
>> CSS using radio buttons and better_exposed_filters auto-submit. Facets
>> would work, but you would still need to use computed_field, I think Facet
>> API only supports ranges for numeric and date fields.
>>
>> Ted
>>
>>
>> On 8/21/2012 12:29 PM, toon severijns wrote:
>>
>> Hello,
>>
>> Could anybody help me with some advise on how to create a views filter
>> (D7) containing buttons with alphabetical ranges (like "A-F", "G-L", "M-R",
>> "S-Z", "All") filtering on the first letter of the nodes' title field?
>> I've seen a post on how to create an alphabetical index (
>> http://drupal.org/node/641342) but i kind of need the letters grouped in
>> ranges. Or is this something that's best done with search API/facets?
>>
>> Any help would be greatly appreciated!
>>
>> Best,
>>
>>
>> Toon
>>
>>
>>
>>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120822/0d4258e1/attachment-0001.html 


More information about the support mailing list