简体   繁体   English

由URL中指定的用户名创建的Drupal视图节点

[英]Drupal view nodes created by username specified in url

I am trying to use views to make pages that will show posts by users according to their username in the url. 我正在尝试使用视图制作页面,以根据用户在url中的用户名显示帖子。

Basically, the following url should display all posts by someuser: http://drupalsite/posts/someuser 基本上,以下网址应显示某用户的所有帖子: http:// drupalsite / posts / someuser

I have been trying for a few hours now but I can't find a solution. 我已经尝试了几个小时,但找不到解决方案。 Can anybody point me in the right direction? 任何人都能指出我正确的方向吗?

如果使用的是View,则应该能够传递用户名的URL参数,以供Node作者过滤节点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM