1
votes

I am trying to make a view such that it will bring a type of content based on logged in user name. I have added username as a vocabulary term to all content. Now I want to filter the content based on logged in user name via filters available in View. For this I am trying to use token module.

Now my views are coming empty, which probably means that token module is not working. So my question is that can we use token along with View Filter and if yes, how.

Thanks

1
as far as I understand, there is no way to add token to view argument - Naveen

1 Answers

5
votes

You don't need the token module. You should be able to do this with views arguments:

  • Add a new argument "User: Name".
  • Under "Action to take if argument is not present" select "Provide default argument".
  • Under "Provide default argument options" select "User ID from logged in user"