I'd like to add various fields created by the Profile module to the Twitter message view type's output. Currently, only values from the User module are available.
I'd like to add various fields created by the Profile module to the Twitter message view type's output. Currently, only values from the User module are available.
Comments
Comment #1
todd nienkerk commentedTo include user profile fields in Twitter message view types, something like the following needs to be added to
twitter_views_data_alter():This was largely pulled from
profile_views_data()(profile.module). Please note I know next to nothing about how Views abstracts its queries, so this is obviously flawed.Anyway, the addition above produces the following query:
A colleague and I found this query returns better results:
Essentially, the ANDs that get added to the JOIN ON part need to be a WHERE AND at the end. We're not sure how to accomplish this in Views, as the documentation is sparse.
Comment #2
steinmb commentedHi Todd
We are currently scrubbing the issue queue and dusting off old feature requests. Is this something we should look into? To me could this be a rather nice thing to have.
Comment #3
dddave commentedComment #4
damienmckennaThis should be possible to do with the current Views integration in the D7 branches.