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

cdale - March 18, 2009 - 20:26
Category:task» support request

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

blueblade - March 18, 2009 - 21:30

Hi cdale,

I tried that solution and it solved my problem immediately!! Thanks so much!! and have a great day!!

BB

#3

cdale - March 18, 2009 - 22:55
Status:active» fixed

#4

tayzlor - March 19, 2009 - 11:08
Status:fixed» active

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

tayzlor - March 19, 2009 - 11:08
Category:support request» bug report

#6

cdale - March 19, 2009 - 21:23

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

cdale - March 20, 2009 - 10:47
Status:active» fixed

I've just committed the attached patch to fix this. Should be all sweet now.

AttachmentSize
me-405866.patch 2.05 KB

#8

System Message - April 3, 2009 - 10:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.