2015-04-23 133 views
1

我在路径中使用我的drupal视图时出现问题,我使用/persons,这工作正常。在drupal 7上查看URL的问题

http://example.org/persons/显示右视图,

但是当我键入http://example.org/persons/asdasd它显示的我的观点了。但我只想在http://example.org/persons/下显示视图

我该如何避免这个问题或者是否存在一些我错过的设置?

+0

能否请您提供的图像视图配置面板?检查你的网址是“人员”而不是“人员/%”,它可以接受参数 – Bustikiller

+0

嗨它的保守人员不是人/%我会在网上截图 – CodeFox

+0

检查网址别名列表和搜索模式,包括“人” 。也许它曾经写过,但从未删除 – Bustikiller

回答

1

这里是你可以做什么:

编辑视图和开放高级,右侧顶部 Edit the view and open **Advanced**, on the right top

添加上下文过滤器:全球:空 Add a contextual filter: **Global: Null**

勾选'显示所有结果',点击更多在b ottom和蜱“失败了基本的验证,如果任何给定参数”现在 Tick 'Display all results', Click **More** at the bottom and tick **'Fail basic validation if any argument is given'**

,如果你把东西在网址前,它会给你一个404页