Passing username instead of uid as panel argument

redraven - August 7, 2008 - 21:05
Project:Panels
Version:5.x-2.x-dev
Component:Plugins - arguments
Category:feature request
Priority:normal
Assigned:sdboyer
Status:duplicate
Description

Hi,

I've used panels 2, along with views to create a custom user profile page.

I have used the User ID panel argument under the context tab to filter profile and user content by uid in my different panes.

*Problem*: Since I'm using the panel User ID argument, all my views arguments need to be set to: 'User: UID is Author' *not* 'User: Username is Author'.

This results in the uid being in the URL for all the page views,

test.com/user/12/blogposts instead of what i want: test.com/user/fred/blogposts

I would like the username in the url, I'd also like to be able to use the username argument in the views, so i can use dynamic titles that have the username, not uid.

I've looked at the issue queue and also some panels 2 context screencasts, but I haven't found any info to address this problem.

Could anyone offer a best approach of how to accomplish this and any links to documentation would be much appreciated.

Thanks

#1

daphisto - August 9, 2008 - 16:10

I would like to see this functionality as well.

#2

sun - September 12, 2008 - 22:52
Title:Passing uid as panel argument, but want username in urls» Passing username instead of uid as panel argument
Version:5.x-2.0-rc1a» 5.x-2.x-dev
Category:support request» feature request
Priority:critical» normal

Sounds like a nice optional configuration option for the User UID argument.

#3

sdboyer - September 13, 2008 - 20:30
Assigned to:Anonymous» sdboyer

There's no reason that this needs to be very complicated at all; just a simple added configuration option on the context config modal, and then a small change to the context-build-time logic. I'll try to remember to write this up once I get back to Panels.

#4

ccdoss - December 14, 2008 - 04:40

Any progress on this? I'd like this too.

#5

rpmute - December 21, 2008 - 18:48

+1

#6

SocialNicheGuru - December 27, 2008 - 15:39

+1

#7

thomasmuirhead - February 4, 2009 - 17:08

This would be a really powerful option for my site. If there's anything I can do to help make it happen just let me know

#8

kfyn - February 10, 2009 - 17:55

+1

#9

jweberg - March 14, 2009 - 10:38

Can you use pathauto or alias to accomplish this?

#10

jweberg - March 19, 2009 - 07:11

Nope, nevermind. I am looking for this on 6.x.

#11

sdboyer - November 10, 2009 - 18:45
Status:active» duplicate

We've now actually got a CTools issue open for this, so closing this one out.

 
 

Drupal is a registered trademark of Dries Buytaert.