me does not work in url to panels page
SocialNicheGuru - July 1, 2009 - 14:24
Description
i setup me module
- case insensive alias checking
- rewrite links generated by the drupal menu system
- redirect to url (or not)
my panel url is
account/me/dashbaord
this will not come up
If i have a url alias 'me' also doesn't resolve correctly

#1
Firstly, the URL alias will not work as expected. URL aliases relate to a specific path i.e. user/1, the idea behind me is to have the 'me' alias replaced with the currently logged in users UID, or in other words, user/me is the same as user/% where % is the current users uid.
I don't know enough about panels to really offer much assistance here at the moment. I'll have a play around with it, but it you could provide me with information on how you have your panels set-up, that might help me resolve this issue.
#2
just setup the most basic panel
choose
mypanel/%user/something
on the next page it will ask for context. select uid.
save the panel
you can add content or not.
now try accessing it from the url with mypanel/me/something
A page not found error.
I have the me module setup so that it works on every page. is that a problem. And this was working before my 'me' module upgrade.
#3
Which panels version are you using?
#4
It looks like me does not support the latest version of panels. I'm moving this to a feature request. I'll have a look at this and see what I can come up with.
#5
panels 3. I wonder if there is an issue with delegator?
There was a conflict with RealName, because it took over the theme user function. Does me do that too? If so it could be similar.
Here is that issue:
http://drupal.org/node/443880
Shot in the dark, but it might help
C
#6
I've just committed a change which adds a "me" aware User UID argument option which I think solves this issue. I've attached a patch. If you could test and report back that would be great. If all is well, I'll make a new release with the change in the next few days.
I couldn't see any other way to go about this. Maybe when I get more time I'll see what else I can come up with, but I think this will suit most needs.
#7
i get malformed patch...
patch -p0 < me*patch
patching file me.module
patching file plugins/me_uid.inc
patch unexpectedly ends in middle of line
patch: **** malformed patch at line 88:
are you creating a new directory and folder, plugins/me_uid.inc
#8
Yeah, I created the "plugins" folder. I've never created a folder in a patch before... do you know if there's something special you have to do?
#9
I don't :(
Do I have to do anything special for this to work? Like declare it in the panel?
#10
If the patch installed right, what you'll need to do, is go into the panel you had created, and change the argument context settings. So instead of using the "User ID" context, you use the "User ID (Me supported)" context. It is under arguments.
#11
does that mean that the argument will take only "me" or the uid argument will support all uids and me?
#12
It will take all uids, and it will also accept "me".
#13
do i need to specify
panelpage/!uid
as panelpage/me on the me module page to get the system to recognize the panel page me argument?
#14
You have lost me somewhere. Modifying the steps you gave above, do the following:
just setup the most basic panel
choose
mypanel/%user/something
on the next page it will ask for context. select User ID (Me supported).
save the panel
you can add content or not.
now try accessing it from the url with mypanel/me/something
You should'nt need to change the default me page settings.
#15
Also, a dev release containing the above patch is now available at http://drupal.org/node/388990
#16
ok. it does work but you have to resave each pane in your panel. saving the panel alone will not work. the context for each panel will not be seen!
Thanks!
C
#17
Glad to hear you got it working.
#18
while I can type me into the url, I cannot create a url with me in it
for example
mypanel/me/something
where panel is mypanel/%user/something.
I am not totally sure if this is an issue for me or panels.
Will fill out another issue
#19
Interesting. I'll have a look into this later. How are you creating the URL? Have you added any menu settings in the panel? Are you trying to create it under admin/build/menu?
#20
i tried creating a menu with panels with a normal menu setting. It does not show up in drupal although it does show up in my database.
Here is my url
mypanel/%user/something
if this were a view, it would only let me do a tab and not a normal menu item. So I am not quite sure if it is "me" module issue.
#21
Automatically closed -- issue fixed for 2 weeks with no activity.