[support] Views Taxonomy and dropdownlist

Joel Willers joel.willers at sigler.com
Wed May 30 16:49:53 UTC 2012


I did a custom PHP dealeo with a custom select list and doing a views_get_view call. I was hoping there was another solution. I suppose a custom handler would work, too, though. I think ranges are too custom to have something that would work in many occasions, but you never know. Have you played with a custom views handler before? I sat in on a session at DrupalCon Denver, so I know the basic idea, but have never done it before.

Joel 


-----Original Message-----
From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of kt992321 at gmail.com
Sent: Wednesday, May 30, 2012 11:45 AM
To: support at drupal.org
Subject: Re: [support] Views Taxonomy and dropdownlist

Of course I will :-) .

Providing lists instead of text inputs for exposed filters : I thought this is a very common task, I'm surprised there isn't a quick/simple answer.

But maybe I'm not on the right way. Maybe I shouldn't use Views at all ?


On 30/05/2012 16:29, Joel Willers wrote :
> This is a bit over my head, but if you figure out the answer, I'd be happy to read about it. If you solve this, could you respond with your solution?
>
> Joel
>
>
> -----Original Message-----
> From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] 
> On Behalf Of kt992321 at gmail.com
> Sent: Monday, May 28, 2012 7:26 AM
> To: support at drupal.org
> Subject: [support] Views Taxonomy and dropdownlist
>
> Hello,
>
> I'm a Drupal newbie.
>
> I'm using latest stable version of Drupal 7 and Views 3.
>
> I have a content type which represents sewing machines :
> * brand
> * model
> * year
> * power (watt)
>
> I have a view to show all the sewing machines.
>
> Now I want to make a view with "year" as exposed filter. Actually I want the user to be able to select a range (between XXXX and YYYY), I want to show this filter as two dropdownlists.
>
> I've read about "hook_form_alter" to change exposed filters aspect (change a text input to a select list) but I would like to know if it is possible to do the same thing using a mix with Taxonomy ?
>
> I know that it is possible to create dropdownlist (select list) with taxonomy terms. But is it possible to use this list of terms to select fields from a content type within a view ?
>
> Note that the dropdownlist could also be a slider input like this :
> http://www.html5tutorial.info/images/slider_gallery.png
>
>
> Regards,
> K.
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
--
[ Drupal support list | http://lists.drupal.org/ ]


More information about the support mailing list