I have read the documentation on Views Integration, and the Views I created fulfill the requirements (Node views, use a pager and enabled).
Out of desperation, I went as far as implementing faceted_search_views_default_views() in faceted_search_views.module but the Views still not showing up.

Did I miss anything?

(I also encounter the same error as described in http://drupal.org/node/372187#comment-2808100. "Ajax" and select "Distinct" is off from the Views I mentioned.)

Comments

reniren’s picture

Status: Active » Closed (fixed)

After some debugging on faceted_search_views_faceted_search_ui_style_info(), the solution I found is by making EXPLICIT the values that are being checked in the IF statement.

By explicitly setting display_options['use_pager'] to TRUE in the codes of the exported View, the problem was solved.

Just left this note in case anybody else has the same problem.

keva’s picture

Title: Views not displayed in Display Style dropdown » Views 3 view not displayed in Display Style dropdown
Status: Closed (fixed) » Active

Having the same problem with Views 6.x-3.x-dev.

I even created a very simple view with all the FS requirements (Ajax:no, distinct:no, Args:no, Exposed Filters: no, Pager:yes)

Views 3 doesn't appear to have display_options['use_pager'], so explicitly setting the pager to TRUE in the same way is not an option.

$view = new view;
$view->name = 'facet_test';
$view->description = 'facet test view';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$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['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'node';
$handler->display->display_options['row_options']['links'] = 0;
$handler->display->display_options['row_options']['comments'] = 0;

EDIT: I recreated the site locally, downgraded to Views 6.x-2.10, and faceted search picks up all views that are set up correctly!

brycesenz’s picture

Subscribing. I am also having problems getting this to work correctly with Views 3.

kpojeta’s picture

Downgrading to Views 2 is not an option due to some Views 3 functionality I need. Is there a solution in sight to this issue? I am also unable to get views to show up except the taxonomy_term, which produces errors as stated above, and some nodequeue views. I tried cloning these views to see if I could get a duplicate or new version to show up. Unsuccessful. Resolution would be much appreciated! Thanks

whitelancer’s picture

In faceted_search_views.module, change this line:

if ($view->base_table == 'node' && empty($view->disabled) && $view->display['default']->display_options['use_pager']) {

to be:

if ($view->base_table == 'node' && empty($view->disabled) && !empty($view->display['default']->display_options['pager']['type'])) {

Since views 3 has different handling of pagers now.

(I'm still trying to figure out other bugs, but at least this gets the view to show up in the drop down...)

groovehunter’s picture

thanks for sharing.
works for me.

Aldus’s picture

has this been committed?

Anonymous’s picture

Does not work for me. Sure, the view is displayed in the list but on the result pages, I get

Call to undefined method view::set_use_pager() in faceted_search_views.module on line 55

Furthermore, when I set something else than an "extract" in the display settings, the search blocks disappear...

Anonymous’s picture

I've found the solution in http://drupal.org/node/372187 #35

mrP’s picture

Category: support » bug
Status: Active » Closed (duplicate)

closing as duplicate of #372187: Facted search - views error - operand should contain 1 column. See #38 for Views 3 patch.