How do I use the user ID in the arguments field?
I tried "User:Uid", but it don't seem to work.

Please help me?

CommentFileSizeAuthor
#4 View.jpg77.46 KBDickSwart
#4 QT.jpg23.58 KBDickSwart
#4 panel.jpg60.19 KBDickSwart

Comments

pasqualle’s picture

Version: 6.x-3.x-dev » 6.x-2.0-rc3
Priority: Critical » Normal

you just use the %0, %1,... to grab the argument from the url. If you are on the node page then use %1 to get the node id, and use the node id as the view argument. Then in the view the User:Uid will be the author of the node..
For filtering a view by current user, you do not need an argument..

DickSwart’s picture

Thanks for your reply Pasqualle,
I have a view that displayes all a users uploaded photos that has an argument of "User: Uid", now on his profile (panels not drupal default profile) I want to display his photo's. If I add the view (No Quick tab) the the panel it works 100%, bat as soon as I add the view to Quicktabs with argument "%1" and then add the quicktab to my panel it don't work.

Please help.

pasqualle’s picture

Panels also gets the user id from the url, it automatically reads the user id from the node id, and pass it to the view. QT can not use argument from panels, so you have to read it manually.

So I am guessing you are using the content profile module (if your user pages are not the default user pages). Here #421768-4: quicktab on Content Profile page is an example how you can add quicktabs to content profile pages.

If you are adding the quicktab to simple user pages like user/2, then %1 should be the user: id..

DickSwart’s picture

Priority: Normal » Critical
StatusFileSize
new60.19 KB
new23.58 KB
new77.46 KB

I am using the content profile module, I had a look at the link you posted, but it still don't work.
Please have a look at my setup attached, please tell me what I'm doing wrong.(See attached files)

pasqualle’s picture

forget the panels settings, that has no effect on the quicktab.
what is the url you are testing?

DickSwart’s picture

Site is not live yet, working offline.

pasqualle’s picture

I just would like to know if your url is a node or user page?
if you try preview on the view editing page, does it work?

DickSwart’s picture

Yes The View work!

DickSwart’s picture

Status: Active » Closed (fixed)

No It didn't work, But I were stupid. I Never selected the relationship from the dropdown for the argument. Now it works, Thank tou for your help.

calefilm’s picture

Thank you for posting the pics and the issue. I had the same issue, simply not selecting the relationship in my views argument.