通过 URL 访问视图 - Drupal
我已经配置了标准的“首页”视图,以便仅通过显示字段(横幅图像)来显示节点列表。
不幸的是,URL /frontapge 不会返回预览的模板,但会在视图模块之前显示相同的页面已安装。
非常感谢您的帮助。
I have configured the standard "frontpage" view in order to display a list of nodes, just by displaying a field (the banner image).
Unfortunately the URL /frontapge does not return the previewed template, but the same page that would get displayed before the views module was installed.
Help would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您如何在视图中配置页面的 url?
您可以将 url 设置为您喜欢的任何内容。要使其成为实际的首页,您所需要做的就是在首页设置中写入相同的 url。
此外,当涉及到 url 和 url 系统中的更改时,清除缓存是个好主意,因为它有时可能是此类问题的根源。
How have you configured the url for the page in the view?
You can make the url to whatever you like. All you need to do, to make it the actual front page, is to write the same url in the front page setting.
Also when it comes to urls and changes in the url system, it's a good idea to clear cache, as it sometimes can be the source to such problems.
您可能需要转到 admin/settings/site-information 并在那里配置首页设置以匹配您的视图的 url。
另外,您的屏幕截图没有显示它,但我认为您已经在视图的页面显示中配置了路径参数
you might need to go to admin/settings/site-information and configure the front page setting there to match the url for your view.
also, your screenshot doesn't show it, but I presume you've configured the path param in the page display of the view