All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Using Low Search form outside of EE root?

Jim Riley 23 Jul 2012 08:47 question, complete

The Low Search mod is terrific - really easy to set up and customise.

I wonder whether it is possible to use the search form outside the root of our EE install.

For example, our home page is independent of the EE blog structure. What tweaks might be needed to the search form code to pass the search query to our search results page in EE?

Replies

  1. Low 23 Jul 2012 08:58

    Hi Jim,

    Well, you can make a search form in EE that you want to use outside of EE, and then copy/paste the generated HTML to the home page. That should be the entire <form>-tag.

    That's one way. Another way would be to use the OpenSearch url given on the module homepage as the action="" parameter of a custom form. Make sure you use an input field with name="keywords". You'll need to know any other parameters to set, which is already done when using the first way I mentioned.

  2. Jim Riley 23 Aug 2012 15:10

    Thanks Low

    How should I handle the hidden field XID

    e.g. picked this up from the generated html:

  3. Low 23 Aug 2012 19:28

    You could omit the XID variable altogether, and the search should work.