Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By jeremy_a on
Hi, maybe I'm missing something obvious, so please humour me for a second. If you create a textfield in CCK you can choose a Select List as a widget. OK. Is it possible to expose this same field in Views as an Exposed Filter and keep it a select list? At the moment I can't get it to be anything other than text input.
Cheers
Comments
Interested in the answer to
Interested in the answer to this as well.
A $ says...
..you can do it in Views 2
I sure can't find it.
Where, where, where!!!
How?
How is it possible in Views 2?
Need the same feature, select
Need the same feature, select list turn to autocomplete textbox, how is it possible in Views 2 ???
+1+
+1+
I gave up on doing it this
I gave up on doing it this way. From what I can see, this isn't possible. My solution was to make use of Taxonomy instead. I created a list of terms, in my case a list US States, and associated it with my CCK type. In Views I selected Taxonomy:Term as the filter type, exposed it, and was able to select my vocabulary and chose Dropdown as the Selection type. I accomplished the same thing and it worked great. The only drawback is that it was more cumbersome to add Taxonomy terms than it was to add items to a CCK list. Still, it was worth it.
It seems we can expose a
It seems we can expose a select list only if:
- it's integer based
- it's taxonomy based
yet in D5, I have a text based select list, exposed it and it is a select list also in its exposed form. So that's a shame, that CCK Views integration seems to have taken this half step backwards.
How can I expose an integer based cck field in 6.x?
How can I expose an integer based cck field in 6.x? The only option I can see is the numerical option (less than, greater than, equal to etc) and it's the same with the decimal option. I use views 3.x and cck 2.8.
TheodorosPloumis.com - Drupal developer @ eworx.gr.
It is possible, as explained
It is possible, as explained in a comment by jainrutgers:
1) Create a content type. Add a cck text field to it. For widget option choose 'Select list' which will be there by default.
2) On setting page of that particular field you will have option to give allowed values. Put all the Categories name that you want to be exposed to user (turn off your any text editor if its ON before implementing this step)
3) Create a new view and in filter select the filed that you created in content type with allowed values. (There will be two version of that filed. choose the Allowed one). And choose expose the field to user.
http://groups.drupal.org/node/20130#comment-72958
Thank you this worked
Thank you this worked perfect!
Thank appel. It works.
Thank appel. It works.
The trick is there are two versions of a field: the original field and the one with allowed values. You must pick the "allowed values" in order to display the filter as select list.
Responsive Drupal themes for mobiles | Ecoparker
How to use dropdown select box for exposed filter in Views 2
It turns out this is fairly simple to do with taxonomy terms in Views 2.
Just select "Taxonomy Term" with subtitle "The taxonomy term ID".. I made the mistake of selecting "Taxonomy Term" with subtitle "Taxonomy term name" which only shows users a fill in the blank. "Taxonomy Term" with subtitle "The taxonomy term ID" will allow you to select a vocabulary and then display the terms in a drop down (this selection is made by clicking the gear icon).
I need to exposed taxonomy terms
I need to exposed my taxonomy terms not in listbox I need to show up the information using checkboxes.
Did you know how. I using drupal 7
im interesed too. i need to
im interesed too.
i need to list all nodes with checkboxes within a a user profile type, is this possible from views?
I tried ViewField but this is not the case.
http://faareia.com/en/
Better Exposed Filters module
This may be what you need: http://drupal.org/project/better_exposed_filters
This might help
This might help explain how to use hook_form_alter to change an exposed filter within a view into a select list: http://www.rwkdesign.com/blog/using-hook-views-query-alter-change-query-...
Select list in Views Exposed Filter
I found a way with View 2 when you add a filter you should find a field named
YourContentType : Configure filter Content: Status (your_field_name) - Allowed values
After you can select the type of select box you want (Multichoice or single choice)
.