Views argument User:ID and me aliases
blueblade - March 18, 2009 - 11:08
| Project: | me aliases |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Description
Hello,
I am trying to figure out how to get the 2nd user's posting to show when a user is viewing another the second user's profile page.
I am currently using 'me' aliases. When I set the argument under view to
user ID > Default argument type: 'User ID from URL',
I do see the posting for the user I am viewing shows correctly. However, when I come back to my user profile, views seems to get confused by the url because the url shows as user/me instead of user/1
Can someone please let me know how to fix this? thank you =)

#1
There is an option under the 'me' alias settings page titled something like "Redirect to uid". You'll want to select that option. You may also wish to uncheck the "Rewrite links generated by the drupal menu system".
#2
Hi cdale,
I tried that solution and it solved my problem immediately!! Thanks so much!! and have a great day!!
BB
#3
#4
re-opening this issue as the me module breaks views argument handlers in my situation.
im also using 6.x-2.x-dev latest snapshot from today, and views 6.x-2.3. if you enable the me module, any views with an argument of User : UID break.
the argument handler in the view shows the following error - Error: handler for users > uid doesn't exist!
#5
#6
Ahhhh.. yes.. of course... I'll have to think about a way to cleanly fix that up. You are talking about views that were created before you installed the me module yes?
#7
I've just committed the attached patch to fix this. Should be all sweet now.
#8
Automatically closed -- issue fixed for 2 weeks with no activity.