0

I am running Drupal 7 and I would like to know how to create a View that displays as a tab on a users profile that displays all of his or her created content. This is what I have so far, but it only shows the tab for the logged in user, no one else can access it.

I got most of the code from here.

0

It seems like you were very close. I would add on to the contextual filter. You need to provide a default value for the filter. Either of the following will work:

  • Using PHP Code. Enter the following into the box "return arg(1);" without the quotes.
  • Raw value from URL. Change Path component to 2.
2
  • Either of those don't work when I access another user's profile, I don't see the "My Content" tab. It may be useful if I told you the path to the user is such example.com/user/*username*
    – user16795
    Jun 30 '13 at 17:13
  • Also, If I change the validation criteria off, still nothing happens.
    – user16795
    Jun 30 '13 at 21:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.