Closed (fixed)
Project:
Custom Search
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2010 at 14:27 UTC
Updated:
21 Jul 2010 at 12:30 UTC
The feature to apply custom search settings to advanced settings is great, but we're looking for the reverse. I'd like to keep our initial search options simple and then apply custom settings to just the advanced search. Essentially make each feature available for either basic or advanced, but not both.
Comments
Comment #1
jdanthinne commentedCould you tell me exactly what you would be able to do/change in advanced search?
Because, when I started this module, the objective was to bring the advanced search options to the default search block, and I don't see what I could add to the advanced search that's not already there.
A real-life example would be nice.
Comment #2
jgreep commentedI have certain content types that we don't want to allow searching on. I'm currently disabling them with hook_form_alter. It works, but I think using your module would be more elegant.
I did some more hunting and found that the search_config module does exactly what I was trying to explain.
Comment #3
jdanthinne commentedI had to release a stable update last week so I was very busy because there were many many changes.
I can now concentrate on new features like this one…
Comment #4
jdanthinne commentedJust commited changes to the DEV version.
Updated the Results Page admin to fully customize the advanced search form.
Now you can choose which content types, taxonomy vocabularies and criteria to display…
Comment #5
Cheek commentedI think he was trying to disable searching on certain node types in general. So let's say you have node type 'music', 'album' and 'record label'. But you don't want the record labels to show up in results. Not on the first search page (before going advanced) and not when the user didn't select any node type on advanced.
As I understand (tried 7.x-1.4) this is currently not possible.
This module does the same (but is not available for D7):
http://drupal.org/project/search_block
Comment #6
jdanthinne commentedNo responses from jgreep, so I can't tell if that was what he needed.
But I think I can also add an option to disable some content types from showing up in the results…
Comment #7
jgreep commentedSorry for the delay. I've finally had a chance to test it. It looks great. Thanks!
Comment #8
Cheek commentedThat would be great jdanthinne! A lot of people want this and it's strange it doesn't even have a simple implementation in D7.
For example, in this topic they're been talking about it since Jan 2007.. http://drupal.org/node/111744
Anyway, it would be a nice addition to your already full-featured module. :)
Comment #9
jdanthinne commented@jgreep: you're welcome!
@Cheek: I'm working on that, but instead of removing node from the search index, I prefer just to hide them from the results. So I can have different settings per block.
Comment #10
Cheek commentedYeah, I think most people just want to filter them from the result page. Removing them from the index won't be necessary.
Comment #11
jdanthinne commentedCommited to DEV.
That wasn't easy at all!!
Needed nasty hacks, and different for Drupal 6 (pretty much the same as search_config, found by Lullabot) and 7 (has to find it myself).
Hope it won't break :-)
So now, there's a new setting in Custom Search / Content page (and in each Custom Search Block as well) to exclude some content types.
Comment #12
jdanthinne commented