Hello,

When I do use a views context display to display parts of views in several panes (exposed widgets in a region, rows in another, ...) I do get the views rows fields output without any row wrappers to separate each row.
I so get some HTML like this (missing "views-row" wrappers) :

<div class="panel-pane pane-views-row">
  <div class="pane-content">
    <div class="views-field views-field-title"><span class="field-content">title here</span></div>
    <div class="views-field views-field-field-description"><span class="field-content">description here</span></div>
    <div class="views-field views-field-title"><span class="field-content">title here</span></div>
    <div class="views-field views-field-field-description"><span class="field-content">description here</span></div>
    <div class="views-field views-field-title"><span class="field-content">title here</span></div>
    <div class="views-field views-field-field-description"><span class="field-content">description here</span></div>
    <div class="views-field views-field-title"><span class="field-content">title here</span></div>
    <div class="views-field views-field-field-description"><span class="field-content">description here</span></div>
    <div class="views-field views-field-title"><span class="field-content">title here</span></div>
    <div class="views-field views-field-field-description"><span class="field-content">description here</span></div>
  </div>
</div>

Does anyone know where to look at in order to fix it ?
Thanks.

Comments

Letharion’s picture

Please provide an export for reproduction of the error. And really, how is this a "critical" issue?

Letharion’s picture

Priority: Critical » Normal
Iwarold’s picture

"critical" priority was a mistake, I wanted to select "major" (as, from my point of view it's major since it really cause a pain in the *** to theme the views results set)
Here is the view export :

$view = new view;
$view->name = 'test';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'test';
$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['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'] = 'full';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* 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']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* 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'] = 0;
$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(
  'contenttypea' => 'contenttypea',
  'contenttypeb' => 'contenttypeb',
);
/* Filter criterion: Content: Title */
$handler->display->display_options['filters']['title']['id'] = 'title';
$handler->display->display_options['filters']['title']['table'] = 'node';
$handler->display->display_options['filters']['title']['field'] = 'title';
$handler->display->display_options['filters']['title']['operator'] = 'word';
$handler->display->display_options['filters']['title']['exposed'] = TRUE;
$handler->display->display_options['filters']['title']['expose']['operator_id'] = 'title_op';
$handler->display->display_options['filters']['title']['expose']['label'] = 'Title';
$handler->display->display_options['filters']['title']['expose']['operator'] = 'title_op';
$handler->display->display_options['filters']['title']['expose']['identifier'] = 'title';
$handler->display->display_options['filters']['title']['expose']['required'] = 0;
$handler->display->display_options['filters']['title']['expose']['multiple'] = FALSE;

/* Display: Context */
$handler = $view->new_display('ctools_context', 'Context', 'ctools_context_1');
$handler->display->display_options['style_plugin'] = 'ctools_context';
$handler->display->display_options['row_plugin'] = 'fields';
$translatables['test'] = array(
  t('Master'),
  t('more'),
  t('Apply'),
  t('Reset'),
  t('Sort by'),
  t('Asc'),
  t('Desc'),
  t('Items per page'),
  t('- All -'),
  t('Offset'),
  t('Title'),
  t('Context'),
);
merlinofchaos’s picture

Project: Panels » Chaos Tool Suite (ctools)
Version: 7.x-3.0-alpha3 » 7.x-1.x-dev
Component: Views panes » Code

This is a CTools issue.

I thought I had fixed this but looking at the code I'm not sure I did. I know there's already an issue but I can't find it in a quick search.

Iwarold’s picture

Thanks for the answer Merlin. Is there a way for me to help ?

Iwarold’s picture

Any news ? :) Merry XMas btw ;)

Iwarold’s picture

Issue summary: View changes

Added "code" tag