Drupal:我可以在网站块中放置一个视图过滤器(搜索项)吗? [英] Drupal: can I place a views filter (Search items) in a website block?

查看:183
本文介绍了Drupal:我可以在网站块中放置一个视图过滤器(搜索项)吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Drupal,而在筛选器列表中也有搜索条款筛选器,它的效果非常好。

I'm using Drupal and in the "Filters" list there is also the "Search Term" filter which works great.

我用它来搜索特定的节点在我的视图列表中。

I use it to search a specific node in my Views list.

但是,当我在视图页面中时,这个字段才会显示,但是我想显示在我的网站的任何页面上(让我们说作为一个块)(当我搜索某些东西时,视图页被加载过滤的节点。

However such field only displays when I'm in the view page, but I would like to display on any page of my website (let's say as a block) (and when I search for something, the view page is loaded with the filtered nodes.

你知道我该怎么做?
谢谢

Do you know how could I make it ? thanks

推荐答案

在您的视图配置页面中应该有一个字段:块中暴露的表单,如果这样,那么视图将创建一个带有过滤器的块,而不是将其嵌入到视图本身中,该块可以从块配置屏幕放置,您可以将其显示在所需的任何页面上。

In your view configuration page there should be a field: Exposed form in block. If this is checked then views will create a block with the filters on it rather than embedding it in the view itself. This block can be placed from the block configuration screen and you can make it show on any pages that you want.

我认为该选项生活在Views 2的过滤器部分,在Views 3中,它位于其自己的位置,称为Exposed Form。

I think the option lived under the Filter section in Views 2, in Views 3 it's in its own place called Exposed Form.

这篇关于Drupal:我可以在网站块中放置一个视图过滤器(搜索项)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆