I have configures a custom search block for which i have allowed search on a single type of content only.
Now I needed a custom search path for this custom block so that i could theme this search path individually.
I configured custom search path with the "CUSTOM SEARCH PATHS" settings tab..
Now after I hit search the page is redirected to the URL i configured but no content is visible there.
What is possibly wrong here ?
The same search works absolutely fine if i just remove the path in "CUSTOM SEARCH PATHS" settings

CommentFileSizeAuthor
#8 Custom-Path.png15.75 KBmahimajulka
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thelynge’s picture

Did you clear all caches after setting the new path?

mahimajulka’s picture

The cache must have been cleared as the search submit button is getting directed to the new URL only

thelynge’s picture

Try clearing it again, just in case.
Do you have any search related modules installed other than the default search module?

thelynge’s picture

oh, and please check your error log :)

mahimajulka’s picture

I have Custom Search 7.x-1.13 and Custom Search Blocks 7.x-1.13 enabled
I have tried with cache clearing as well no success ..

thelynge’s picture

The Custom Search module has a built-in custom searchpath functionality. Check out the section "Custom Search Paths" under admin/config/search/custom_search. In this case you should that instead of the Custom searchpath module.

thelynge’s picture

I will take a look at trying to get the module working with Custom Search sometime soon. Currently it only works with the Search module and Apache Solr.

If you don't really need the Custom Search module for anything special right now, you could disable it and just use the default Search module. The Custom searchpath module works well in that case.

mahimajulka’s picture

FileSize
15.75 KB

I have attached the settings where I have put the path of the custom search.
This setting comes while editing the custom search block.
AFter clicking on search in my custom search block i am redirected to this link but no search results appear.
If i just change the path and make this field empty my search is directed to search/node/[key] and results appear ..
Isn't this a bug ?
or am i doing something wrong here ?

mahimajulka’s picture

Ok thelynge there is some misunderstanding i think i have tagged a module that i am not using.
I am using Search, Custom Search 7.x-1.13 and Custom Search Blocks 7.x-1.13
I am not using Custom searchpath module

thelynge’s picture

Ok, then ask your question here: https://drupal.org/project/custom_search

thelynge’s picture

If I understand the Custom Search module correctly, setting the Custom Search Path in the block will just be a frontend change. To display the results you have to setup the results page elsewhere. Maybe using the views module. But asking in the project forum to which I linked above might still be a good idea.

mahimajulka’s picture

Project: Custom searchpath » Custom Search
Version: » 7.x-1.3

Changed the project to Custom Search

mahimajulka’s picture

using views to create a search block works as a charm..
though i still wonder why this way is not working ..

thelynge’s picture

Like I mentioned, I think the "Custom Search Paths" setting is only a frontend setting, changing the form action - no result page will be added nor changed to match it. That you have to do another way.

I just tested the Custom Search module with my Custom Searchpath module and that will work too. Just set the same path in both modules.

jdanthinne’s picture

Status: Needs work » Closed (works as designed)

@thelynge is right, the Custom Search Path is used to redirect the search to a custom search page (to be built by Views, another search module, or even to an external website), and NOT to alias the search path.