Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have two use cases involving buddylist with usernode/nodeprofile and views:
- In my view I'd like to be able to sort profile nodes by the time that the buddy relationship was created, e.g. most recent buddy first. I would also like this time to be made available to the view itself.
- I'd like to be able to use the username field as an argument in the view URL, i.e. http://www.example.com/[my_username]/friends. Currently http://www.example.com/[my_uid]/friends is possible, but I'd prefer not to have to create aliases.
Following is a patch for your consideration that implements these use cases. Thanks!
Mark
Comment | File | Size | Author |
---|---|---|---|
#1 | buddylist_views_0.patch | 5.62 KB | mleicester |
Comments
Comment #1
mleicester CreditAttribution: mleicester commentedThis patch also removes what I think is a redundant array assignment (compare lines 103 with 131):
$tables['usernode_buddylist_buddyof'] = array( ...