Drupal 7 View a list of content created by a registered user

I was just starting to use D7 and was trying to set up a system where people can add a couple of types of content and associate them with each other using nodereference.

I want users to be able to see and work with their own content.

To achieve this in D6, I used a view for no-dementation.

In D6, I used the argument: user: uid, and if there is no argument, it uses the user ID of the logged-in user. This will return all content that was created by the user.

I was not able to figure out how to do this in Views 3?

received: you first need to add user relationships, then you will see new filters and context filters - one of which is the "current user" or something like that

+4
source share
2 answers

This five minute video shows how to do this: http://nodeone.se/sv/node/684

Using context filters, you can also display the list as a tab on each user page (as shown on the screencast).

If you are interested in a list in which the user's current messages are always displayed, you can use the standard filter - there is a "current user" filter.

Edited: The original link is broken. I’m not sure what the video was, but it could be one of the following (all this concerns this topic).

+6
source

For drupal 7

Steps to complete the above question:

Create a new presentation of the content and limit it to the desired type of content.

Uncheck "Create Page" and check "Create Block." Select the desired format; I recommend an HTML list of related titles. Click Continue and Edit.

Add context filter for "Content: Posted by uid."
  • In the "When the filter value is not available" section, select "Provide a default value" and select "User ID from URL" from the drop-down list. Since the blocks do not understand context filters very well, the view will not work properly without this default value, and all messages of this content type will be displayed on all user pages (and not just on the user's own messages).
  • In the "When a filter value is available or default value is set" box, select "Specify verification criteria" and select "Basic scan" as a validator. Select "Hide View" from the drop-down list.

Save your submission.

Assuming you have created a block mapping, the block will now be available on the Blocks page. Go there and open it.

Install your block to display on all user pages (/ user / *) in the correct region. Save the block.

Your block should now appear on all user pages, showing content written by each user.

A source

+4
source

All Articles