26

I'm trying to filter a view to display only nodes of the current user. Filter by user:current is missing however, where can it be found/enabled?

I must be missing something simple.

Mikkel R. Lund
  • 2,336
  • 1
  • 31
  • 44
stopshinal
  • 1,891
  • 4
  • 16
  • 24

2 Answers2

42

In Drupal 7, Views 3, you must add the Relationship of Content: Author on the right side under the Advanced settings. Once you've added that relationship, you will be able to see the User: Current filter.

nmc
  • 8,724
  • 5
  • 36
  • 68
7

You can use another method without require any relationship. in Advanced settings add Contextual filters select Content: Author uid and in settings of it select Provide default value ,in type selectbox choose User ID from logged in user

Yuseferi
  • 7,931
  • 11
  • 67
  • 103