Drupal 7 视图上下文过滤器与页面和积木
我有一个问题,希望得到一些建议。
我创建了一个视图,显示基于 url 的内容:
例如:
domain.com/item/one
显示我的节点的标题为 one
domain 的字段
。 com/item/two
显示我的节点的字段,标题为 two
等。
视图中页面的路径设置为 /item
我的内容我遇到的问题是我需要一个块(因为我正在使其可折叠)在该页面下显示,具有特定 URL 的显示该节点的正文字段。
例如:
domain.com/item/ Three
显示标题为 two
的节点的字段以及显示节点 two
的正文字段的块code>
我已将页面的上下文过滤器设置为:
Content: Title
When the filter value is NOT in the URL
Show "Page not found"
Exception value : Empty (All removed)
Under More:
Case : Lowercase
Case in path : Lowercase
Transform spaces to dashes in URL : Checked
这适用于该页面,但如果我设置不正确,请告诉我。
我已经为 BLOCK 设置了相同的上下文过滤器,它可以在视图预览中工作,但不能在 URL 为:
domain.com/item/ Three
的
页面上工作。对此的任何建议将不胜感激。
I have an issue and i'm hoping to get some advise.
I have a view created that show content based on the url:
eg:
domain.com/item/one
Shows fields for my node with the title one
domain.com/item/two
Shows fields for my node with the title two
etc etc.
The path for the PAGE in views is set to /item
What I'm having trouble with is I need to have a BLOCK (becuase I'm making it collapsable) show under that page with the specific URL show the body field for that node.
eg:
domain.com/item/three
Shows fields for my node with the title three
as well as a block that show the body field for node three
I have set the Contextual filter for the PAGE to:
Content: Title
When the filter value is NOT in the URL
Show "Page not found"
Exception value : Empty (All removed)
Under More:
Case : Lowercase
Case in path : Lowercase
Transform spaces to dashes in URL : Checked
This works for the page but please let me know if I have set this up incorrectly.
I have set the same Contextual filter for BLOCK and it works in views preview but not on the page with the URL:
domain.com/item/three
Any advise on this would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论