I have a content type, named "Task". It has a cck user reference field named "assigned_user". I want to filter Tasks, which their assigned_user is current user. how can I use "Token Filter" for this for my view? I installed this module but I didn't find anywhere for inserting tokens in view filter. Does exist any better way?
views:
18answers:
1
A:
- Create a View of type Nodes
- Add a filter of
Node: Type = Task
in your view - Add another filter from the drop down group
Content
. Now chooseContent: assigned_user
. Now choose the operatoris not empty
- Add an argument from the drop down group
Content
namedContent: assigned_user
. Now in the argument settings forContent: assigned_user
underaction to take if argument is not provided
chooseprovide default argument
. Now chooseUser ID from logged in user
- Add the fields you want in your view e.g. node title etc
- You're done!
Sid NoParrots
2010-10-05 20:27:09
@Mohsen: did the answer help you?
Sid NoParrots
2010-10-06 08:56:46