Drupal 7 Views Contextual Filters

允我心安 提交于 2019-12-09 23:41:08

问题


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.

Thanks for any help.


回答1:


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?



来源:https://stackoverflow.com/questions/7232720/drupal-7-views-contextual-filters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!