When I use this module to use another view as a field, it duplicates everything in the view 5 times. Why does it do this?

Comments

dawehner’s picture

Status: Needs work » Postponed (maintainer needs more info)

Please describe how you have setup your views, because this is probably just a configuration issue.

In general it also helps us to help you, if you could post some kind of export as attachment.

dshields’s picture

I'm having a similar experience.

$view = new view;
$view->name = 'monthly_slowest_times';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Monthly SLOWest Times';
$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'] = 'Monthly SLOWest Times';
$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['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: Global: View */
$handler->display->display_options['fields']['view']['id'] = 'view';
$handler->display->display_options['fields']['view']['table'] = 'views';
$handler->display->display_options['fields']['view']['field'] = 'view';
$handler->display->display_options['fields']['view']['label'] = '';
$handler->display->display_options['fields']['view']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['view']['element_default_classes'] = 1;
$handler->display->display_options['fields']['view']['hide_empty'] = 0;
$handler->display->display_options['fields']['view']['empty_zero'] = 0;
$handler->display->display_options['fields']['view']['hide_alter_empty'] = 1;
$handler->display->display_options['fields']['view']['view'] = 'community_posts';
$handler->display->display_options['fields']['view']['display'] = 'block';
$handler->display->display_options['fields']['view']['query_aggregation'] = 0;
/* 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;

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'SLOWestTimes';
$translatables['monthly_slowest_times'] = array(
  t('Master'),
  t('Monthly SLOWest Times'),
  t('more'),
  t('Apply'),
  t('Reset'),
  t('Sort by'),
  t('Asc'),
  t('Desc'),
  t('Page'),
);

Any assistance would be fantastic

dshields’s picture

Status: Postponed (maintainer needs more info) » Active

Updating status

damiankloip’s picture

Are you getting duplicates in the parent or child view? because the export above looks like the parent view. If you are getting duplicates in this it probably isn't a vfv issue.

istryker’s picture

Title: Duplicates » Duplicates {title to be rename something else}

Can we change the title of this issue. Maybe 'getting duplication of views in one field', or something. Duplicates is too general, and 'duplicates' can mean something different in the issue queue.

damiankloip’s picture

Status: Active » Postponed (maintainer needs more info)
damiankloip’s picture

Title: Duplicates {title to be rename something else} » Duplicates in view field results
knalstaaf’s picture

Version: 7.x-1.0-rc3 » 7.x-1.x-dev
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new19.02 KB

I'm having the same issue. Every view field is duplicated times the total amount of children.

View field 1 has 2 children (displayed nodes)
View field 2 has 3 children (displayed nodes)
Result: every node is being displayed 5 times.

Attached you find my config:

  • (Display: Publiek + beveiligd works fine)
  • [Parent] Display: Publiek + greyed out contains both the View fields
    • [Child] Display: Publiek is a child view of Publiek + greyed out
    • [Child] Display: Beveiligd (greyed out) is a child of Publiek + greyed out as well

(Probably related to #2102067: Parent row duplicate by number of child rows)

knalstaaf’s picture

StatusFileSize
new67.7 KB

I could actually work it out with the help of the Views Distinct module.

Configuring the following Views Distinct settings in both View fields:

  • Filter/aggregate this field: Filter repeats
  • And I checked Use the rendered output of this field

Duplicate view fields

abelass’s picture

StatusFileSize
new36.81 KB

I have the same issue

and I resolved it with Views Merge Rows

vladimiraus’s picture

Status: Active » Closed (outdated)

Thank you for your contributions.
Drupal 7 is no longer supported.
Closing the issue.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.