How do I display all posts created by an author in a block on the user profile page using Drupal 7 Views?
Looking for a nice little Drupal tutorial on how to achieve this with Drupal 7 Views, as it has changed the Drupal 6 Views arguments to contextual filters and user:uid doesn't seem to be available here.
To add a view that displays all nodes created by the user on each user's profile in Drupal 7, proceed in the following order.
Once you've selected fields, filter criteria and sort criteria as well as your cosmetic preferences, you can proceed to the advanced section on the righthand column of the views edit page.
1. First, you must require the following relationship: content:author.
2. Only then does the contextual filter of user:uid become available.
3. Then afterwards select the radio for: provide default argument, the select list for user id from url and the checkbox for, Also look for a node and use the node author.
4. Apply and save, and you should find your view in perfect working order.
Answers
joseph
Sun, 08/07/2011 - 00:40
Permalink
To add a view that displays all nodes created by the user on each user's profile in Drupal 7, proceed in the following order.
Once you've selected fields, filter criteria and sort criteria as well as your cosmetic preferences, you can proceed to the advanced section on the righthand column of the views edit page.
1. First, you must require the following relationship: content:author.
2. Only then does the contextual filter of user:uid become available.
3. Then afterwards select the radio for: provide default argument, the select list for user id from url and the checkbox for, Also look for a node and use the node author.
4. Apply and save, and you should find your view in perfect working order.
5. Take a bow, you did it!