Drupal 7视图上下文过滤器 [英] Drupal 7 Views Contextual Filters

查看:394
本文介绍了Drupal 7视图上下文过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用节点标题上的上下文过滤器创建一个视图,并且想知道是否有一种方法可以将单个字母作为参数传递,并使视图返回以该字母开头的所有节点?

I'm trying to create a view with a contextual filter on the title of the node and was wonder if there was a way to pass in a single letter as the argument and have the view return all node that begin with that letter?

目前我还没有找到一种方法,我必须传递节点的完整标题才能正常工作。

Currently I've not found a way to do this, I have to pass in the full title of the node for it to work properly.

感谢任何帮助。

推荐答案

要做到这一点,我必须提供一个默认值:

To get this to work I had to provide a default value:

然后我也已经设置了词汇模式:

And then I also had set up the Glossary Mode:

我以前设置了词汇模式,但没有按照我预期的方式工作。我猜默认值是否需要工作?

I had set up the Glossary Mode before but it wasn't working the way I had expected. I guess the default value is required for it to work?

这篇关于Drupal 7视图上下文过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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