How to list all nodes a user signed up for?

Events happening in the community are now at Drupal community events on www.drupal.org.
DrupalCuckoo's picture

hi,

I'm trying to show all nodes (events) a user signed up for. Right now, a user can only see signed up nodes if he's the creator of the node. When a user signs up for a node which was created by an different user, it doesn't show up in the list. I've attached an image of my current views configuration.

I'm using CCK+Date+Calendar modules to create calendars.

On 05/16/10 you can see an event created which was created by user1 (uid is "3" as you can see in the preview area). User1 signed up for the event and it shows up (as expected). On 05/15/10 theres an other event created by user2. User1 signed up for the second event as well but this one do not show up?!

So my goal is to show all nodes a user signed up for, regadles of who created the node.

Thanks for any help.

Best regards,
DrupalCuckoo

AttachmentSize
calendar-views.jpg107.51 KB
views-2.jpg117.83 KB

Comments

Perhaps it's a trick of

juliavdw's picture

Perhaps it's a trick of permissions?

To expand a little...

malks's picture

I think what Julia is alluding to is that views will respect the permissions of the underlying content. That is if a user can't view the content type it won't appear in the view. If you have the content access module installed then go into /admin/content/node-type/YOURCONTENTTYPE/access and check that "View any content" is selected for the required role.

Anthony.

Permissions are ok, I guess

DrupalCuckoo's picture

hi julia, hi anthony,

it's not a permission problem. In the default calendar view (the one which comes with the calendar module) users can see all events (regardless of who created the node) but when I use my self-created view to display only events a user signed up for I get only the nodes that belong to the user who's displaying the view. Is there nothing I forgot to add to my view?

Thanks.

Best regards.

I found my problem and solved it! :)

DrupalCuckoo's picture

hi,

after rebuilding my view from scratch (I got frustated and deleted it! :P) I found out that the "Argument" I'm passing to the view (User ID) is beeing used a filter to show only nodes which belong to the given UID.

The other problem was, that I used "nodes" as type of my view (because of this the argument acted that way, I guess). For my new view I've chosen "sign up" as type and this time everything works correctly. All signed up events were listed in my view (I'm no longer using the calendar to display the nodes, it's now in grid style).

I've attached a screenshot of my new view (look on the attached files at the first post, the file's called "views-2.jpg").

In the preview area I've entered "1" as the UID of the admin. The result are three different events created by three different users. The field "Ersteller" (means "creator" in german) shows the usernames of those users.

best regards.

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: