Closed (fixed)
Project:
me aliases
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2009 at 14:24 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cdale commentedFirstly, 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.
Comment #2
socialnicheguru commentedjust 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.
Comment #3
cdale commentedWhich panels version are you using?
Comment #4
cdale commentedIt 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.
Comment #5
socialnicheguru commentedpanels 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
Comment #6
cdale commentedI'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.
Comment #7
socialnicheguru commentedi 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
Comment #8
cdale commentedYeah, 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?
Comment #9
socialnicheguru commentedI don't :(
Do I have to do anything special for this to work? Like declare it in the panel?
Comment #10
cdale commentedIf 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.
Comment #11
socialnicheguru commenteddoes that mean that the argument will take only "me" or the uid argument will support all uids and me?
Comment #12
cdale commentedIt will take all uids, and it will also accept "me".
Comment #13
socialnicheguru commenteddo 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?
Comment #14
cdale commentedYou 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.
Comment #15
cdale commentedAlso, a dev release containing the above patch is now available at http://drupal.org/node/388990
Comment #16
socialnicheguru commentedok. 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
Comment #17
cdale commentedGlad to hear you got it working.
Comment #18
socialnicheguru commentedwhile 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
Comment #19
cdale commentedInteresting. 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?
Comment #20
socialnicheguru commentedi 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.