Views FastSearch, Exposed Filters, and Table View
With this set up of Views FastSearch, multiple exposed filters, and a table view, everything shows in just the first column, rather than putting the fields in their respective columns. All the data is shown though.
Posted issue here: http://drupal.org/node/198617
No answers:
Best way for Views to efficiently size columns
http://drupal.org/node/159972
A better table view?
Add Cross Tables View Type to Bonus Pack
http://drupal.org/node/121730
We're not sure this is Views Fast Search's fault, but we've run out of other ideas. When using views_fastsearch as one of several exposed filters, and using table view, all fields are displayed in the first column– and nothing in the other columns.
Does anyone have any thoughts? (This is an issue for the World Social Forum Call to Action installation profile, currently undergoing trial-by-fire ;-) -- here's the post on it there: http://drupal.org/node/195308 )
Here's our view definition:
$view = new stdClass();
$view->name = 'find_action';
$view->description = 'Find an Action';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Find an Action';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'table';
$view->url = 'view/findaction';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->sort = array (
array (
'tablename' => 'node',
'field' => 'created',
'sortorder' => 'ASC',
'options' => 'normal',
),
array (
'tablename' => 'location',
'field' => 'country',
'sortorder' => 'ASC',
'options' => '',
),
);
$view->argument = array (
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => 'Title',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array (
'tablename' => 'og_node_data',
'field' => 'title',
'label' => 'Group',
),
array (
'tablename' => 'term_node_5',
'field' => 'name',
'label' => 'Location',
'options' => 'link',
),
array (
'tablename' => 'term_node_6',
'field' => 'name',
'label' => 'Action Status',
'options' => 'link',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'action',
),
),
array (
'tablename' => 'term_node_6',
'field' => 'tid',
'operator' => 'OR',
'options' => '1',
'value' => array (
),
),
array (
'tablename' => 'search_index',
'field' => 'word',
'operator' => '=',
'options' => '',
'value' => '',
),
array (
'tablename' => 'term_node_5',
'field' => 'tid',
'operator' => 'AND',
'options' => '',
'value' => array (
),
),
);
$view->exposed_filter = array (
array (
'tablename' => 'search_index',
'field' => 'word',
'label' => 'Search Actions',
'optional' => '1',
'is_default' => '0',
'operator' => '1',
'single' => '1',
),
array (
'tablename' => 'term_node_5',
'field' => 'tid',
'label' => 'Location',
'optional' => '1',
'is_default' => '0',
'operator' => '1',
'single' => '1',
),
array (
'tablename' => 'term_node_6',
'field' => 'tid',
'label' => 'Status',
'optional' => '1',
'is_default' => '0',
'operator' => '1',
'single' => '1',
),
);
$view->requires = array(node, location, og_node_data, term_node_5, term_node_6, search_index);
$views[$view->name] = $view;
Comments
Post new comment