I only want the Google tab to be displayed, is there any way to disable the "Content" tab on the CSE search results?

any advice will be greatly appreciated

Comments

The Computer Audiophile’s picture

I believe you can either disable the Drupal search module or in the access control settings uncheck the ability to use the search module. This should remove the tab.

stackpool’s picture

You're right, this is a good module, but it should at least have a few lines of documentation as it's not the most intuitive of UIs at all.

If you go to the Modules section (admin/build/modules) and uncheck the module "Google CSE search", that disables the appearance of alternative search tabs.

Give everybody access to "search Google CSE" in the google_cse module entry in admin/user/permissions.

Then uncheck all the users in "search content" listed under "Search Module", also in admin/user/permissions. I unchecked the advanced search options as well.

I think that's about it. Works for me anyway! :-)

moscheIT’s picture

Don't work for me :( if i follow you instrutions , the search box disapair

IbnDrupal’s picture

@stackpool

This doesn't work for me.

Infact I'm not sure how this can work for you either. By removing "search content" permissions, the search box disappears...

cchan’s picture

@moscheIT IbnDrupal

You need to add the Google CSE block for the search box to show up. If two search boxes appear, then uncheck the regular search module in Core-Optional

chadd’s picture

same problem here.
i have the google cse block enabled.
when i remove anonymous permissions for the core search module, anonymous users can no longer use the google CSE.
they can still see the google CSE search box, but when a search is submitted, they are sent to /search/google/[query]/[querystring containing google cse id/info]
and they get an access denied. they can successfully go to /search/google/ but once a search is performed, they are blocked.
any help on this one?
i'd like to get rid of the content tab because it is very confusing for users to have 2 sets of different results.
thanks!

luthien’s picture

The following settings worked well for me:

1) go to the Modules section (admin/build/modules) and uncheck the module "Google CSE search".
2) go to admin/user/permissions, and give everybody access to "search Google CSE". Remove permissions for all the users for "search content" and "advance search" entries.
3) go to the Modules section (admin/build/modules) and uncheck the module "Search".

It is basically the same solution proposed by #2.

chadd’s picture

#7 worked perfect for me

patcon’s picture

A-ha... so the "Google CSE search" module is where the dependency is...

kribby’s picture

Is there another way to do this? Removing the standard Search module conflicts with Search 404's ability to integrate with Google CSE.

blueflag’s picture

Exactly what i needed!!!

patcon’s picture

@ #10

Also, it seems to prevent search terms from being passed on when you move to other search tabs (like USERS or PROFILE)... The text in the field just disappears...

munyiva’s picture

Thanks #7 worked for me.

mlaw’s picture

Issue summary: View changes

#7 worked for me! Thanks!

suncorjohn’s picture

Does this work for the Drupal 7 version ?

I figured it out. For Drupal 7 just disable Node & User under Active Search Modules in Home > Administration > Configuration > Search and metadata

alexmoreno’s picture

Status: Active » Closed (works as designed)