Is there any way to create a user-from-node context, with the relationship "author from this node"? Thanks

CommentFileSizeAuthor
#5 user_from_node.inc_.txt1.03 KBmichelle

Comments

michelle’s picture

Version: 6.x-2.x-dev » 5.x-2.x-dev
Component: Plugins - contexts » Plugins - relationships
Assigned: Unassigned » michelle

I can do this one... Just not right this minute. Assigning it to myself so I remember.

Michelle

sterwa’s picture

thanks, looking forward :)

sterwa’s picture

hey... is this a feature to expect any time soon? appreciate your effort...

michelle’s picture

Ack, sorry, totally fell off my radar. :( I'll leave this tab open in the browser and will try to get to it ASAP. It's only a tiny bit of code so I can squeeze it in.

Michelle

michelle’s picture

Status: Active » Needs review
StatusFileSize
new1.03 KB

Here you go. Sorry for taking so long. Tracker needs a "to do" bin. :)

Michelle

sdboyer’s picture

subscribing, so i make sure to review this and get it committed for beta4

sterwa’s picture

Michelle,
Thank you for your time and skills. Eager to test but virtually clueless in code development for drupal, I would appreciate a hint on where these functions should go :)

michelle’s picture

Take the .txt off the end and drop it into sites\all\modules\panels\relationships.

Michelle

ineation’s picture

Excellent, I was working on that but was having problems figuring the right code.
Finally I found your file. It works great !!!

Thank you Michelle !

edit : this should be included in the module as it is a general purpose relationship

michelle’s picture

"this should be included in the module as it is a general purpose relationship"

Yes, that's the plan.

Michelle

patchak’s picture

Version: 5.x-2.x-dev » 5.x-2.0-beta3

I installed this code on my install of panels beta 3 and I can't have this to work! I renamed it and dropped where it should go in the relationships folder, but I get no love at alll.. did something changed since dev version?? I emptied site cache, browser cache and tried also with new panels and still no luck..

I'm sure the is only a little detail hre maybe something changed in the API of the module??

Patchak

michelle’s picture

As mentioned on IRC, I confirmed this does work with beta 3.

Michelle

sdboyer’s picture

Status: Needs review » Fixed

As we said on IRC Patchak, I don't know what's causing the issue for you. I've tested this; it works, and I've committed it for beta4. Thanks, Michelle!

patchak’s picture

I just tested on a fresh install and it does work, will try and debug the current install... probably some stupid issue like caching.
Thanks for the help!
Patchak

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.