Posted by nateman332 on November 15, 2012 at 7:59pm
What I what to be able to do is create a view that will display a content type (a blog for instance) created by a user that is referenced on a page. In other words: I want one view block that will change it's output depending on the user referenced on the page it is on...is this even possible?
Comments
By "the user referenced on
By "the user referenced on the page" do you mean the author of the node/content or something else?
I mean a User reference field
I mean a "User reference field" that I added to the node.
Saving the internet, one file at a time.
If I helped, Pay it forward or give me a cookie ;)
I would try this First make a
I would try this
First make a view that takes a content:nid (node:nid) as a contextual argument, configure so it takes the default argument from the URL. At this point you have a view that can lists nodes from the current node.
Now add a relationship on the "User reference field", this should let you view user information about the user.
Now add a relationship on "User: Content authored" (should use the previous relationship), this will get you back to content. You can then add fields, filter criteria and sort order that used this relationship.
There is no relationship on
There is no relationship on "User: content authored" maybe cause I'm only using views 2.16?
Saving the internet, one file at a time.
If I helped, Pay it forward or give me a cookie ;)
Sorry, my reply was for
Sorry, my reply was for Drupal 7 and views 3.
The user relationship is implied in views 2, I am not sure though there is a relation to go from user to content though.
Thanks anyways, I'll keep
Thanks anyways, I'll keep looking.
Saving the internet, one file at a time.
If I helped, Pay it forward or give me a cookie ;)
This:
This: http://geeksandgod.com/tutorials/computers/cms/drupal/limit-views-create... helped me out a lot! Although I can't use a reference field like I had hoped, I can change the author of the node (a small price to pay for functionality)!
here's how to do it:
Saving the internet, one file at a time.
If I helped, Pay it forward or give me a cookie ;)