By drupal92037 on
Here's what I did. My question is in step 4 below:
1) I created a view that lists all nodes of type X, and added an argument for User: uid.
2) I then made a CCK content type that has a node reference field for nodes of type X.
3) In the configuration page for the node reference field, in the "Advanced - Nodes that can be referenced (View)" section, I selected the view from step (1).
4) In the "View arguments" field, I'd like to enter something that specifies "the current user's uid". How do i do that? I tried "user/%" and it didn't work.
Thanks.
Comments
How pass node id as view argument to select in a CCK node ref
I also need help to achieve same
View arguments:
Provide a comma separated list of arguments to pass to the view.
any help?
I suppose this is very simple to solve, but not for newbies like me, pls help. thanks in advance
Author
What do you want to accomplish?
Do you only want to show nodes where the current user is the owner?
If so use a filter in views, filtering the node author.
Maybe this vid helps...
http://gotdrupal.com/videos/drupal-views-arguments
greets