I can not setup an argument in view I have this error:
"handler for node_data_field_location_geo > field_location_geo_geo doesn't exist!"

But Filter work without problem...

I have a relation in the view.

CommentFileSizeAuthor
#6 geo-813482-updated.patch2.71 KBahtih
#5 geo-813482.patch2.93 KBahtih

Comments

gagarine’s picture

I try with a brand new view without relation or any thing special and I have exactly the same problem

The view:

$view = new view;
$view->name = 'geo_test';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('arguments', array(
  'field_location_geo_geo' => array(
    'id' => 'field_location_geo_geo',
    'table' => 'node_data_field_location_geo',
    'field' => 'field_location_geo_geo',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'location' => 'location',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('row_plugin', 'node');
$handler->override_option('row_options', array(
  'relationship' => 'none',
  'build_mode' => 'full',
  'links' => 1,
  'comments' => 0,
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'geo_test');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));

maedi’s picture

subscribe

geoffff’s picture

Are View Arguments implemented yet in the Geo module?

(I see this error as well.)

ahtih’s picture

Apparently it is not implemented, but geo_views_data() mistakenly returns data claiming such a handler exists, with class name "views_handler_argument_geo". This class in fact does not exist in Geo module.

It should be relatively easy to make such class (and file), based on somewhat similar includes/views/views_handler_filter_geo.inc file which does exist.

ahtih’s picture

Title: View Arguments: Broken/missing handler: node_data_field_location_geo > field_location_geo_geo » [PATCH] View Arguments: Broken/missing handler: node_data_field_location_geo > field_location_geo_geo
Status: Active » Needs review
StatusFileSize
new2.93 KB

Here is a patch against 6.x CVS HEAD.

For now this supports arguments in only WKT format, and only those filter functions that return boolean and have two geometry parameters (e.g. Within, Intersects, Touches; but not Distance). That's all I need for my own application, but I guess for some people, adding Distance support would be useful.

ahtih’s picture

StatusFileSize
new2.71 KB

Sorry, the patch file was broken. Here is a fixed version.