It would be nice if the module allowed an admin to create multiple search blocks, each with different settings. That way you could easily build context sensitive search.
It would be nice if the module allowed an admin to create multiple search blocks, each with different settings. That way you could easily build context sensitive search.
Comments
Comment #1
Mike Kennedy commentedI would really like to see this as well, have you found any additional information on this?
Comment #2
jdanthinne commentedYes, the creation of additional blocks is pretty easy, but the hard part is to find to right UI to handle that, because there's already 4 pages of settings, for one block…
So, all the settings on 1 page? On the block settings?
Comment #3
Mike Kennedy commentedI dont know that I completely understand the question. However what I am really looking for is a seperate search box for each content type. Just as an example, lets say you have four different content types on your site. Lets say, articles, photos, blogs, and product reviews.
I would like to be able to set up a seperate custom search box for each content type. I would create a Page in views for Articles, and at the top I would put a custom search box for just articles, and on another page a seperate search box for blogs, and so on and so forth.
I am not a programmer so obviously I dont know how challenging this would be, but if it helps I am happy to donate some cash towards the effort.
Thanks
Mike
Comment #4
jdanthinne commentedDonation is always welcome, for sure BUT before giving away your money, as I understand what you're planning to do, have you try a Views exposed filter? It would be perfect for what you describe.
Comment #5
jdanthinne commentedWell, after some research and some hard work, I've found a way to implement that.
I've commited that to the dev version. There's a new settings page "Search Blocks" where you can enable blocks by content type.
Just try it, and tell me what you think…
Any donation is still welcome for hard work :-)
Comment #6
egghunter commentedThis feature is amazing and if I had any money, I would donate some but nonprofits make zilch. My only suggestion would be to make the "search" button larger although that could be my theme...
Comment #7
jdanthinne commented@G.S : larger button is definitely a theme/css thing.
Comment #8
egghunter commentedThat's what I thought (my brain short-circuited), thanks.
Comment #9
jdanthinne commentedFor those of you using this new -dev function, warning! I've just commited changes and if you update, don't forget to enable the Custom Search Blocks submodule!
Comment #10
jdanthinne commentedAnd by the way, each blocks has its own settings in the default block admin page.
Comment #11
Lloyd commentedDefinitely a great idea. Is there any way to specify which node type(s) can be searched on a block by block basis?
Comment #12
jdanthinne commentedAs now, each additional block searchs for a particular content type, and the default search block can be configured to select which content type(s) to include. Do you think each block should be like the the default one?
Comment #13
gmclelland commentedHi @jdanthinne, I just tried out the dev version of your module. I really like being able to restrict content types, but I was really hoping to have the custom blocks have all the options as the default custom search block.
You could look at how the menu_block module handles multiple blocks. Basically, it has a settings page where the user indicates how many menu blocks to create. Then you visit the block page and configure each block individually similar to how this module behaves.
Cheers
Comment #14
djvern commented@jdanthinne: I need content-type settings for each custom search block too - I'm trying to create two different searches based on a combination of taxonomy terms, but both search blocks need to be able to search the page content type. Will there be any option to set the content type per block in future dev versions? If not is there a hack I could use to make the Custom Search: Story block (for example), search page nodes instead? I'd be willing to pay for your time in helping me with this.
Thanks,
Dave
Comment #15
jdanthinne commentedOkay, working on that…
Comment #16
jdanthinne commentedJust added the content types options in the block settings in DEV.
Please review / donate :-)
Comment #17
jdanthinne commentedComment #18
coderintherye commentedDid this ever get committed into your production release?
Comment #19
jdanthinne commentedYes my friend, a long time ago!