Im not sure what is the problem here, so I have decided to post here first.
-Im trying to simply display a proximity search for location with a view block. I have created the default view, the page view and the block view. All work with exception of the block view? It will not display. Any thoughts ?
Comments
Comment #1
dawehnerI think you should export the view, to show us what you did.
Perhaps you did some arguments doing on etc.
Comment #2
Durran commentedOkay.... here ya go.
-------------------------------
$view = new view;
$view->name = 'location_filter';
$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('relationships', array(
'field_location_lid' => array(
'label' => 'Location',
'required' => 0,
'id' => 'field_location_lid',
'table' => 'node_data_field_location',
'field' => 'field_location_lid',
'relationship' => 'none',
),
));
$handler->override_option('fields', array(
'field_profile_image_fid' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'image_search_return_linked',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_profile_image_fid',
'table' => 'node_data_field_profile_image',
'field' => 'field_profile_image_fid',
'relationship' => 'none',
'override' => array(
'button' => 'Override',
),
),
));
$handler->override_option('sorts', array(
'distance' => array(
'order' => 'ASC',
'origin' => 'tied',
'units' => 'mi',
'latitude' => '',
'longitude' => '',
'id' => 'distance',
'table' => 'location',
'field' => 'distance',
'relationship' => 'field_location_lid',
),
));
$handler->override_option('filters', array(
'status' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status',
'table' => 'node',
'field' => 'status',
'relationship' => 'none',
),
'type' => array(
'operator' => 'in',
'value' => array(
'profile' => 'profile',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
'distance' => array(
'operator' => 'dist',
'value' => array(
'latitude' => '',
'longitude' => '',
'postal_code' => '',
'country' => '',
'search_distance' => '50',
'search_units' => 'mile',
),
'group' => '0',
'exposed' => TRUE,
'expose' => array(
'use_operator' => 0,
'operator' => 'distance_op',
'identifier' => 'distance',
'label' => '',
'optional' => 1,
'remember' => 0,
),
'type' => 'postal_default',
'identifier' => 'dist',
'id' => 'distance',
'table' => 'location',
'field' => 'distance',
'relationship' => 'field_location_lid',
'override' => array(
'button' => 'Override',
),
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler = $view->new_display('block', 'Search members', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'search-all-members');
$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,
));
-------------------------------------------------------------------------------------------------
Here's the site... Just to let everyone know. Its a singles site that I thought drupal might not handle that well, but once again, I have found drupal to be one of the best choices for about anything.
http://www.woosingles.com
Thanks for the quick response too!
Comment #3
littleviking001 commentedTo have your filters affect a block, set "Use AJAX" on the block display to Yes.
Comment #4
dawehnerUpdate status.
Comment #5
dawehnerThe proximity filter might be the problem here.
Comment #6
ankur commentedPlease re-open if this bug is still occurring in the latest 6.x-3.x dev version.
Comment #7
vlooivlerke commentedHi
I have taken the location directory view, shiped with location module and activated it.
Very cool view, but when I add a block to that view in new 3 dev the block view does not reflect what the view is displaying.
I know, bad english
In short, location block does not adhere to the arguments.
Using views 3
my location block just show all location nodes so argument filters does not work.