hi guys,
anyone know a way to create a group members view?
if there is no way a
"user subbed in groupNID"
or
"usernode subbed in groupNID"
views argument will be nice to create member list views.
greets
Lausch
hi guys,
anyone know a way to create a group members view?
if there is no way a
"user subbed in groupNID"
or
"usernode subbed in groupNID"
views argument will be nice to create member list views.
greets
Lausch
Comments
Comment #1
moshe weitzman commentedin current Views, you have to list usernodes and not users. i am not familiar enough with usernode and views to know how to do this. if the usernodes were affiliated with the group, this would work out of the box.
Comment #2
alex_b commentedI just ran into a similar request, too.
A views selector "OG: node author member of given group" would help a lot.
I am not familar with the views API - is such a selector feasible at all?
Comment #3
jasonxxx commented$tables=array( 'zite_og_users' => array(
'name' => 'users',
'provider' => 'internal', // won't show up in external list.
'join' => array(
'type' => 'left',
'left' => array(
'table' => 'og_uid',
'field' => 'uid'
),
'right' => array(
'field' => 'uid'
),
),
'filters' => array(
'name' => array(
'name' => t('OG: Consumers'),
'operator' => 'views_handler_operator_like',
'handler' => 'views_handler_filter_like',
'help' => t('jason32.'),
),
)
)); // hook_views_tables()
Comment #4
Lausch commentedthanks for your help,
but where to include this code?
greets
Lausch
Comment #5
Christefano-oldaccount commentedThis looks like it would go into og_views.inc. jason32, can you provide a proper patch?
Comment #6
dkruglyak commented+1, this patch is needed. Could we get it finalized and commited ?
Comment #7
socialnicheguru commentedsubscribing
Comment #8
jasonxxx commentedIt is translated from Russian by the autotranslator
It is necessary to create the office module. I named it "zite". There to create function zite_views_tables ()
I have resulted a code, I will repeat -
After that there should be a corresponding filter. I if fairly have already forgotten, about what in general has safely handed over for a long time already the speech, that project.
Comment #9
claudiu.cristeaThis version of Drupal is not supported anymore. If this is still an issue in the
8.x-1.xbranch, please open a new up-to-date ticket. Closing.