Drupal 7 视图上下文过滤器 [英] Drupal 7 Views Contextual Filters
问题描述
我正在尝试在节点标题上创建一个带有上下文过滤器的视图,并且想知道是否有办法将单个字母作为参数传递并让视图返回以该字母开头的所有节点?
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屋!