I'm using CCK and Views and I'm still learning it, but anyway, I have different users that I create and also have Nodes with the titles the same as their username. So, simply I want to filter or make an argument for the node that says node.title = users.name is true then show the node, otherwise 404. I can't get it to work for the life of me.

Also, how can you edit the Query directly?

thanks!

Comments

rampar’s picture

Does someone maybe know how to head me towards setting up a PHP script to make the query work?

I'm looking for any help!

joachim’s picture

You want to show tthe node for the given user in the argument, or the currently logged-in user?
Are you sure you wouldn't be better off with a module like Content Profile?

rampar’s picture

Yes, I want to show the node for the logged-in user. The node is originally created by myself, and then I have different clients who log in to check to see progress. So, the title of the node is the same as the username, and what I want to do is filter it out so that they can only see nodes that have the title the same as their username. My view can work if I do, node.title is equal to username, but I can't actually pull the currently logged in user.

joachim’s picture

You;d be better if with content profile -- make one node per user, and assign the node to belong to the client.