Hi daniel,
I really like the "Redirect to node" options in Node Finder Advanced settings,
and I would like to see this feature in Views Finder too. This is especially
interessting if one want to use the View to build autocomplete-suggestions
only. The View result-page should just be a fallback if the user didn't find
the appropriate result in the first step.
Moreover, I would like to see an other option in "Redirect to node" settings:
"Redirect to the only result node, or redirect to Advanced Search page if there are multiple results."
this would really make sense if one use finder for really big datasets, for example body-text
of all nodes. this should avoid performance bottlenecks and the admin could decide which
search mode fits best for his use case.
thanks in advance!!
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | finder.txt | 2.91 KB | Fidelix |
Comments
Comment #1
dsms commentedwell, I forgot to mention that the first feature-request makes only sense on Views from type 'node',
but maybe this could be extended to taxonomy, users, comments etc. as well.
Comment #2
danielb commentedYes I've thought about this, I just don't know how to implement it. The current way views finder works is that it handles all kinds of views the same way. If we have to start redirecting then it has to be done on a case by case basis, because the path for users/taxonomy/comments/nodes are all different, and there is no function like drupal_path_to_object('comment', 35) which it would be really freakin good if there was. Additionally the users/taxonomy/comments/nodes can be added to by views plugin modules, and those cases there would be no way to redirect to anything at all.
I thought it would be great if I could scan the result for the first result for a path/url to use, and then it would be up to the person making the view to ensure there was a link to the object in there.
Still thinking about it. I would rather not have to do it case-by-case, but if I do, then there would also need to be a hook for modules to add/modify the default path calculation.
I don't know what you mean by Advanced Search - do you mean the search module? You could override theme_finder_results() and do a drupal_goto if you wanted some custom redirects on certain conditions. There is also some search module integration available in Finder Search, but it is not that great for wierd values or complex finders at this stage.
Comment #3
dsms commentedyes, I mean a redirect to the drupal search module. I hope for the Node Finder this would be quickly done.
For the views finder.. an option would it be to provide this feature at first only for nodes, since most of
the users would search for nodes. I dont know if it is hard to get the node IDs from Views results, but if,
you can easily redirect to url('node/'.$node_id), this works of course in the same way for taxonomy
and users, only for content with no own url appears the mentioned problem. so if you could discover the
view type from the given view, just throw it into the url-function and see what happens :D
Comment #4
danielb commentedComment #5
danielb commentedI have added support for this like so
I welcome any suggestions for improvement??
Comment #6
dsms commentedthats great!! I will try this out during the next days.
Comment #8
hbevan commentedSo did this work? I'm after similar functionality - where would this code go, as a patch to the finder_views module?
Comment #9
truebluejw commentedA little trick I found was to make the view of a finder auto-complete item "search/node". This way you can use the auto-complete, direct to a node, and if you do a search, it will pass the search terms to the search url instead of the finder url
Comment #10
Fidelix commentedIs this implemented yet?
Users are not being redirected to the first result, i dont know why.
The view type is Node.
Comment #11
Fidelix commentedHere is my finder:
Comment #12
danielb commentedYes the support was added. You have not identified a bug, please in future start a new issue for support questions.
The answer to your problem is that you have selected "best" in the finder result redirect options (or whatever it is called), which only redirects to the first result if there is only a single result. You need to choose a different option (I think it is called "always").
Comment #13
Fidelix commentedBut even if there is only one result, the user is still redirected to the search page, with the single result.
Comment #14
shv_rk commentedHi there,
I am usung Finder plugin to filter my products. which works perfectly.
but the search result page shows the whole node.
I wan to chage it to show only product name, image, read more button.
how can I do that?
I need some directions plz
thx
Comment #15
Fidelix commentedYou need to use a views display as the result page.
Create a view that looks exactly how you want it to be, then set that view to be used on your finder settings, under "Results output" or something like that.
It works fine here for me. But this issue is about having a single result and redirecting to it. This feature does not work for me.
Comment #16
shv_rk commentedHi Fidlex,
thanks for the reply and help.
I have created my view (finder_result_page) and under the Result page section:
Results page:
Build results page from "Output display".
Build custom results page.
"Output display" is configured under the "Views displays" fieldset above. Custom results page can be themed using theme_finder_views_results($results, $finder, $form_state).
I have chosen => Build custom results page.
but I don't understand how can I associates my view with the findet output page.
there in no option in the module to specify which view to use!
Sh
Comment #17
Fidelix commentedAs i said, you should NOT choose "Build custom results page", as that will make finder build the results itself, and only use views to make the query for the results.
You should choose: "Build results page from "Output display"."
Which you should chose above in the fieldset "Views displays".
Regards.
Comment #18
shv_rk commentedFinally got it! :D thanks Fidelix
Comment #19
Michsk commentedmay i suggest implementing facebook statuses, i have already implemented it with succes (not that it was that much work)
Comment #20
icecreamyou commentedI don't actually use Finder, but as the maintainer of Facebook-style Statuses, I'd like to see the change suggested in #19. :) If it happens I'll add Finder to the list of integrated modules.
Comment #21
danielb commentedThis issue was solved a long time ago. Please don't confuse me.
Comment #22
Fidelix commentedThese comments should be in a new issue, guys.