For other noobs like me who have trouble finding their unique CSE ID code. When logged in at the Google Coop-op, choose your custom search control panel, then click on "Code", and you will see some example code that Google provides. For example, fo my own custom search, I have:





Only local images are allowed.

The "cx" value is your custom CSE ID that must be entered into the admin page for the Drupal CSE module. For the above case, the ID is: 17904710112285524325:q_4mptrmsuw

Hope this helps someone.

Comments

ohzbees’s picture

Sorry here's the code (typical noob!):

<!-- Google CSE Search Box Begins  -->
  <form id="searchbox_017904710112285524325:q_4mptrmsuw" action="http://www.google.com/cse">
    <input type="hidden" name="cx" value="017904710112285524325:q_4mptrmsuw" />
    <input type="hidden" name="cof" value="FORID:0" />
    <input name="q" type="text" size="40" />
    <input type="submit" name="sa" value="Search" />
    <img src="http://www.google.com/coop/images/google_custom_search_smnar.gif" alt="Google Custom Search" />
  </form>
<!-- Google CSE Search Box Ends -->
 
druvision’s picture

Yes, the CX value is what's needed. The code in the second answer is not needed - it's what this module is trying to prevent.

Amnon
-
Professional: Drupal Israel | Drupal Development & Consulting | בניית אתרים
Personal: Hitech Dolphin: Regain Simple Joy :)

druvision’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.