I'm using References module to use User Reference field in Taxonomy Term page. I have added new Term called "Matt's books" with user Matt set in User Reference field (field_user).
User Matt has created multiple nodes. When I open Taxnomy Term page called "Matt's books" I need to have listed all nodes which Matt has been created.
I have made View block to show nodes (content type Books).
I added Relationship Content: Author and set it to Require.
Then I added another Relationship User: User (field_user) - reverse and set this also to Required.
At this point my View block is showing Book nodes from all users when I'm in Matt's book Taxonomy Term page.
Here is my issue: How can I show nodes only from user who is used in User Relationship field (field_user) in current Taxonomy Term?
If I set Contextual Filter Taxonomy term: User (field_user) and set When value is not available to display "No results find" it does not show nothing att all in Taxonomy Term pages.
So my View should work like this for example: In "Matt's books" Taxonomy Term page it shows only content from user Matt - because he is in User Relationship field (field_user) of this Taxonomy Term page.
Here is my View exported:
$view = new view();
$view->name = 'books';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Books';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Books';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '5';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* Relationship: Content: Author */
$handler->display->display_options['relationships']['uid']['id'] = 'uid';
$handler->display->display_options['relationships']['uid']['table'] = 'node';
$handler->display->display_options['relationships']['uid']['field'] = 'uid';
$handler->display->display_options['relationships']['uid']['required'] = TRUE;
/* Relationship: User: User (field_user) - reverse */
$handler->display->display_options['relationships']['reverse_field_user_taxonomy_term']['id'] = 'reverse_field_user_taxonomy_term';
$handler->display->display_options['relationships']['reverse_field_user_taxonomy_term']['table'] = 'users';
$handler->display->display_options['relationships']['reverse_field_user_taxonomy_term']['field'] = 'reverse_field_user_taxonomy_term';
$handler->display->display_options['relationships']['reverse_field_user_taxonomy_term']['relationship'] = 'uid';
$handler->display->display_options['relationships']['reverse_field_user_taxonomy_term']['required'] = TRUE;
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'books' => 'books',
);
/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block');