开发者

Drupal 7 Views Restrict to uid of current user

开发者 https://www.devze.com 2023-04-11 14:18 出处:网络
开发者_高级运维I have a bugs view which shows all the bug content types. My questions is, how can I limit the view to only show bugs that have assigned_to equal to the logged in user?You can add a fil

开发者_高级运维I have a bugs view which shows all the bug content types. My questions is, how can I limit the view to only show bugs that have assigned_to equal to the logged in user?


You can add a filter... when you edit the view...

add filter for the current user...


You need to establish a relationship between your bug content type and the logged in user in the views.Once you establish the relationship the set the appropriate filters as logged in user. Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消