Drupal Views 公开过滤器:分类选择列表?
Drupal 6:我有一个视图(版本 2),其中包含分类术语名称的公开过滤器。提供的公开小部件是一个带有“应用”按钮的文本字段。我想做的是从特定词汇(“省”词汇由术语“BC”、“AB”、“SK”等组成)填充下拉列表,而不是自由文本字段。
我以为一旦公开过滤器,我就会获得选择列表的选项,但我没有。我得到的只是“运算符(等于、不等于等)”-“值(空白字段)”-“可选(复选框)”...
我认为这对于做,但我所有的谷歌搜索都没有找到答案。
有人知道有办法做到这一点吗?
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 but all my google-ing has found no answer.
Anybody know of a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须公开分类术语ID而不是分类术语名称才能获得小齿轮图标,以便您可以获得下拉菜单。
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.
我使用better_expose_filters。
单击公开分类过滤器的设置图标并选中“下拉列表”!
只需添加词汇和术语
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.