Download & Extend

Passing username instead of uid as panel argument

Project:Panels
Version:5.x-2.x-dev
Component:Plugins - arguments
Category:feature request
Priority:normal
Assigned:sdboyer
Status:closed (duplicate)

Issue Summary

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

Comments

#1

I would like to see this functionality as well.

#2

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

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

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

#5

+1

#6

+1

#7

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

+1

#9

Can you use pathauto or alias to accomplish this?

#10

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

#11

Status:active» closed (duplicate)

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

nobody click here