Drupal 7次查看带有Page&amp ;;的上下文过滤器块

时间:2011-10-22 18:34:19

标签: drupal-7 drupal-views

我有一个问题,我希望得到一些建议。

我创建了一个基于网址显示内容的视图:

例如:

domain.com/item/one

显示标题为one

的节点的字段

domain.com/item/two

显示标题为two

的节点的字段

等等。

视图中的PAGE路径设置为/item

我遇到的问题是我需要在该页面下显示一个BLOCK(因为我正在使其可折叠),特定的URL显示该节点的主体字段。

例如:

domain.com/item/three

显示标题为three的节点的字段以及显示节点three的正文字段的块

我已将PAGE的上下文过滤器设置为:

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

对此有任何建议将不胜感激。

0 个答案:

没有答案