开发者

Drupal VIews Exposed Filter: Taxonomy Select List?

开发者 https://www.devze.com 2023-02-19 03:21 出处:网络
Drupal 6: I have a view (version 2) with an exposed filter on taxonomy term name. The provided exposed widget is a text field with \'Apply\' button. What I\'m trying to do is to have a drop down popul

Drupal 6: I have a view (version 2) with an exposed filter on taxonomy term name. The provided exposed widget is a text field with 'Apply' button. What I'm trying to do is to have a drop down populated from a specific vocabulary ('Provinces' vocab consisting of terms 'BC', 'AB', 'SK', etc.), not a free text field.

I thought once I expose the filter I would get the option for a select list, but I don't. All I get is 'Operator (Is equal to, Is not equal to, etc.)' - 'Value (blank field)' - 'optional (check box)'...

I thought that this would be a pretty common thing to do bu开发者_Go百科t all my google-ing has found no answer.

Anybody know of a way to do this?


You have to expose the The taxonomy term ID not the The taxonomy term name in order to get the little gear icon so that you can get the drop-down.


I've using better_exposed_filters. Click settings icon for exposed taxonomy filter and check "Dropdown list"!

just add vocab and terms


there are two areas where you can configure your taxonomy filter. First the "basic" settings, which include all settings you mentioned, and second the settings behind the "gear-icon", where you can chose your vocabbulary and the type of widget.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号