Hello,

I'm trying to update my site to drupal 7 and running into some anticipated problems, but the one that is really baffling me is with exposed filters for views.

So obviously the existing exposed filters for views from my drupal 6 installation were not recognized. I removed those and tried to recreate some exposed filters, but no matter how many times/ways I click that check box to expose a filter, when I check again, it is unchecked, and I can confirm that no filter gets exposed, and the code says that no filters are set to be exposed when I export a view.

This looks like a problem with the interface for views in that it's not registering my placing a check in that expose filter checkbox, but I can't be sure.

I've tried using different admin interfaces (including default) and different browsers, (firefox 4, ie9 and chrome)

Is there some way I can manually edit a view? if it's just a matter of setting exposed to TRUE, i think I can manage that..

Any help would be greatly appreciated.

here's the export:

$view = new view;
$view->name = 'Trails';
$view->description = 'List of Trail Descriptions';
$view->tag = 'Trails';
$view->base_table = 'node';
$view->human_name = '';
$view->core = 0;
$view->api_version = '3.0-alpha1';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['title'] = 'Trails';
$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'] = 'full';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'node';
/* Header: Global: Text area */
$handler->display->display_options['header']['text']['id'] = 'area';
$handler->display->display_options['header']['text']['table'] = 'views';
$handler->display->display_options['header']['text']['field'] = 'area';
$handler->display->display_options['header']['text']['empty'] = TRUE;
$handler->display->display_options['header']['text']['content'] = 'Choose a combination of filters to find the trails you\'re interested in.';
/* 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(
'trail' => 'trail',
);
$handler->display->display_options['filters']['type']['expose']['operator'] = FALSE;
/* Filter criterion: Fields: Closest City (field_city) - value */
$handler->display->display_options['filters']['field_city_value']['id'] = 'field_city_value';
$handler->display->display_options['filters']['field_city_value']['table'] = 'field_data_field_city';
$handler->display->display_options['filters']['field_city_value']['field'] = 'field_city_value';
$handler->display->display_options['filters']['field_city_value']['value'] = 'Calgary';

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->display->display_options['path'] = 'trails';
$translatables['Trails'] = array(
t('Defaults'),
t('Trails'),
t('more'),
t('Apply'),
t('Reset'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('Items per page'),
t('- All -'),
t('Offset'),
t('Choose a combination of filters to find the trails you\'re interested in.'),
t('Page'),
);

Comments

eachin’s picture

I struggle with this for hours, and as soon as I go through the trouble of making a post and asking for help I discover that it's a problem with a theme and my earlier attempt with an alternative theme must have missed it somehow.

the AT theme and probably all those based on it are bugged when it comes to exposing filters, just in case anyone else runs into a similar problem.

Woodside’s picture

Thanks for posting this, I was going a little crazy trying to figure this out. I was using my AT subtheme as my admin theme.

BAM5’s picture

Another thing that can cause this is having the devel_themer module enabled.