CCK NodeReference - Pass current user id as argument to selection view
Posted
by Chaulky
on Stack Overflow
See other posts from Stack Overflow
or by Chaulky
Published on 2010-04-20T16:20:19Z
Indexed on
2010/04/20
16:23 UTC
Read the original article
Hit count: 246
Hi all,
I'm trying to create a view to limit the options available to a user for a CCK NodeReference field. I want to pass the current user's ID as an argument to the view that selects the options for the CCK NodeReference field. Basically when the user creates a new item, I only want them to be able to reference a node which they created (not someone else's node). I've got a view set up that accepts a user ID as an argument, but how do I pass the current user's ID to the view from the CCK NodeReference field?
Thanks in advance!!!
© Stack Overflow or respective owner