Closed (fixed)
Project:
Finder
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2012 at 09:52 UTC
Updated:
19 Feb 2012 at 03:20 UTC
When I created a new finder and have a GO button this still doesn't go directly to the node instead this goes to the Results page. I have tried this on a number of different pages elsewhere with restrictions and this finder goes to Results page on all of them. I have even cloned the finder and this one works on all pages.
The only difference I see below is from 'element_handler' => array( TO 'plugin type' => 'element_handler', ), this is in the original one I created but not in the clone. I did try with 'redirect' => 'always', and 'redirect' => 'never', in original and still was same results. Why would the original be so different to the clone?
$finder = new finder();
$finder->disabled = FALSE; /* Edit this to true to make a default finder disabled initially */
$finder->api_version = 2;
$finder->name = 'community_finder';
$finder->views_view = 'community';
$finder->views_display = 'block';
$finder->title = 'Community Finder';
$finder->description = '';
$finder->path = 'community_finder';
$finder->block = TRUE;
$finder->status = TRUE;
$finder->settings = array(
'i18n_string' => array(
'title' => 'finder:community_finder:title',
'description' => 'finder:community_finder:description',
'settings' => array(
'header' => 'finder:community_finder:settings.header',
'footer' => 'finder:community_finder:settings.footer',
'find_text' => 'finder:community_finder:settings.find_text',
'go_text' => 'finder:community_finder:settings.go_text',
'no_results_configured' => 'finder:community_finder:settings.no_results_configured',
'contextual_filter' => 'finder:community_finder:settings.contextual_filter',
),
),
'block' => TRUE,
'form_on_page' => TRUE,
'find_button' => 0,
'find_text' => 'Find',
'go_text' => 'Go',
'ajax_effect' => 'slide',
'show_results' => 'filter',
'results_style' => 'views',
'no_results' => 'default',
'pager' => 10,
'redirect' => 'always',
'element_logic' => 'AND',
'url' => 'enabled',
'url_delimiter' => ',',
'ajax' => 0,
'ajax_remote' => 0,
'go_button' => 1,
);
$finder->elements = array(
'community' => (object) array(
'id' => 'community',
'finder' => 'community_finder',
'settings' => array(
'field_logic' => 'OR',
'value_logic' => 'OR',
'match' => 'c',
'fields' => array(
'field_data_field_community.field_community_value' => (object) array(
'table' => 'field_data_field_community',
'field' => 'field_community_value',
'relationship' => NULL,
),
),
'max_suggestions' => 10,
'autocomplete_field_logic' => 'OR',
'autocomplete_value_logic' => 'OR',
'autocomplete_match' => 'c',
'i18n_string' => array(
'title' => 'finder:community_finder.community:title',
'settings' => array(
'description' => 'finder:community_finder.community:settings.description',
'header' => 'finder:community_finder.community:settings.header',
'footer' => 'finder:community_finder.community:settings.footer',
'field_prefix' => 'finder:community_finder.community:settings.field_prefix',
'field_suffix' => 'finder:community_finder.community:settings.field_suffix',
'contextual_filter' => 'finder:community_finder.community:settings.contextual_filter',
'choices_rewrite' => 'finder:community_finder.community:settings.choices_rewrite',
'maxlength' => 'finder:community_finder.community:settings.maxlength',
'size' => 'finder:community_finder.community:settings.size',
'max_suggestions' => 'finder:community_finder.community:settings.max_suggestions',
'autocomplete_delimit' => 'finder:community_finder.community:settings.autocomplete_delimit',
),
),
'match_custom_operator' => '',
'match_custom_prefix' => '',
'match_custom_suffix' => '',
'display' => 'block',
),
'weight' => '0',
'title' => 'Community',
'element' => 'autocomplete',
'element_handler' => array(
'title' => 'Autocomplete textfield',
'settings callback' => 'finder_autocomplete_settings',
'element callback' => 'finder_autocomplete_element',
'menu' => array(
'finder_autocomplete/autocomplete' => array(
'page callback' => 'finder_autocomplete_autocomplete',
'access arguments' => array(
0 => 'use finder',
),
'type' => 0,
'file' => 'autocomplete.inc',
'file path' => 'sites/all/modules/finder/plugins/element_handler/',
),
),
'theme' => array(
'finder_autocomplete_textfield' => array(
'render element' => 'element',
'file' => 'autocomplete.inc',
'path' => 'sites/all/modules/finder/plugins/element_handler/',
),
),
'module' => 'finder',
'name' => 'autocomplete',
'path' => 'sites/all/modules/finder/plugins/element_handler',
'file' => 'autocomplete.inc',
'plugin module' => 'finder',
'plugin type' => 'element_handler',
),
),
);
Comments
Comment #1
danielb commentedYou kinda lost me with that talk about originals and clones.
My understanding is this is a bug report that the go button does not function differently from the submit button.
I will check.
Comment #2
danielb commentedWorks perfectly. Have I misunderstood?
Comment #3
r13ose commentedIf I have a new Finder and Clone this new one should the paths be different? As I believe that is might have been what caused the problem. I had the paths the exactly the same name.
Comment #4
danielb commentedYeah that's probably it. When I clone a finder the first thing I have to do is change the path. Dunno if there's an easy way to automatically do it.
Comment #5
danielb commentedreopen if that didn't work