Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By merrillbros on
I have a View: Block that is on a user account page.
I want the View to make a list of nodes created by user.
Currently on the view in the filter section. I can only hand type users in.
Is there a way to pass args() or something?
Comments
I created an author
Erased
https://drupal.org/node/15785
I solved my problem with Views: Contextual filters.
I added a relationship with "Content: Author"
I added a contextual filter "Content: Author Uid" with the settings:
- In the "When filter value is NOT available" section check radio option "Provide default value" with Type "ID from User"
Thats it!