Jump to content
mr-fan

Google Custom Search for your browser/bookmarks

Recommended Posts

So i've somehting to share expecially for beginners with processwire!!

I'm like others here not really satisfied with the forum search - so i decided to make a google custom search page

https://www.google.com/cse/publicurl?cx=014789015761400632609:fxrf0rj4wr4

but the optical result is not that i imagine so i created a very small html page with the PW Logo + Google CSE JS Code
and now it looks better....

so i've had a fast search on the

  • /talk/
  • /api/
  • /docs/
  • and cheatsheet pages from processwire.com!

so maybe it's usefull for anybody?

Have Fun

post-2327-0-01459400-1408104194_thumb.jp

PW-Search.zip

  • Like 4

Share this post


Link to post
Share on other sites

glad you like it - it's just a little helper.

Share this post


Link to post
Share on other sites

thanks for sharing! i didn't know that custom search feature...

Share this post


Link to post
Share on other sites

Nice. Some time ago I tried to make a Firefox searchplugin, but didn't got it working. So thanks for this solution.

Share this post


Link to post
Share on other sites

now I made it for Firefox!

Take a look at this site: http://www.searchplugins.net/generate.aspx

Search URL:

https://www.google.com/search?q=site:processwire.com%2Ftalk+TEST

Suggestion URL (optional):

https://www.google.com/search?q=site:processwire.com%2Ftalk+TEST

Search plugin title: ProcessWire Forum Search

Icon: uploaded a small copy of the PW favicon

result:

<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>ProcessWire Forum Search</os:ShortName>
<os:Description>ProcessWire Forum Search</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEgAACxIB0t1+/AAAARFJREFUOE+lj78vBFEUha8/Y2u9RrOtVrQSlUqrVqlIyCYaGqIQsYVssQ2VKES22yBRkGCtyWQQM3atf+DIh7s/srNidyb55r533znn3TeW267Jsnzje3VlwSYOn/QX+XKg6aNQk6UgVWcIBrFw/qKVy7jN3GnUp7Wp40BpIN64TvpAy4XusZmTUN3MV561+mvcum30BLBnIiZzj82eRQKMSxdvQvQf1q9iMaVhXKy+ave+OTT4jB9vHSWApxpjYz6ofwykGP2c7QeNHg1eW76Jtfn4LkSlsNWurNP23sOD19buEhUeOgEu8EAPomIC9PjAvEHdCZvfeI81Y3uv+8zDzE2jVmNU4CZfD1OtnHwqC1/QKAe2frywFgAAAABJRU5ErkJggg==</os:Image>
<os:Url type="text/html" method="GET" template="https://www.google.com/search?q=site:processwire.com%2Ftalk+{searchTerms}" resultDomain="google.com">
</os:Url><os:Url type="application/x-suggestions+json" method="GET" template="https://www.google.com/search?q=site:processwire.com%2Ftalk+{searchTerms}" resultDomain="google.com">
</os:Url><os:Url type="application/opensearchdescription+xml" method="GET" template="http://www.searchplugins.net/createos.aspx?number=81717" rel="self" resultDomain="searchplugins.net">
</os:Url>
</SearchPlugin>

Then create the plugin and install it in FX.

post-1027-0-44475600-1408118826_thumb.jp

EDIT: give the new plugin in Firefox a keyword (character), so you don't need to change the search.

My example character is p. E.g. you type p field dependencies in the adressbar, hit enter --> ready

  • Like 3

Share this post


Link to post
Share on other sites

thank you! :lol:

post-1041-0-44276000-1408121505_thumb.jp

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Anders
      I want to allow full text search on my site. There is a very nice solution that comes right out of the box:
      $selector = "title|body~=$q, limit=50"; This works, but to make it even better I would want to give higher weight to pages where the search term occurs in the title, than if it just occurs in the body. After all, a page with the title "Wine from France" is probably the best match for the search "france wine". How do I accomplish this in ProcessWire?
      I can see three possible paths, but I am not very fond of any of them:
      Do a direct SQL query, circumventing the API, along these lines. But I would prefer to abstract away the database layout if at all possible. Use something like ElasticSearch, but to be honest that would be to complicated to set up and maintain in the long run. Make multiple lookups, first for matches in the title, then for matches in the body, and merge and sort in PHP. My suspicion is that this would get complicated quite quickly. For instance, how do you deal with a page that has two of the three search terms in the title and the third in the body? Is there a magic option four I should look into? Or are any of the above options better than the others? Any input is welcome!
    • By jds43
      Hello,
      I have a search page loosely based on Skyscrapers where I'm parsing a selector with options 'beds', 'bathrooms', 'size' fields. It is working well until I select 'Any' after I've run a search. This is where no results are returned (/?beds=&bathrooms=&size=&submit=). I want it to reset and show all results.
      I hope this isn't too vague.
       
    • By Mithlesh
      Hi there, 

      How to add Google Recaptcha V 3.0 in the processwire?

      My website has this module: Markup Google reCAPTCHA but I am not sure whether that is V.3 or any other, sharing the SS below:


      Let me know how to update or integrate the same

      Thanks
    • By sww
      Hey there,
      i am trying to add a kind of "intelligent" search.
      Is there any way to ignore punctuation and extra chars.
      e.g.
      When I type "somebody elses" that I still get the result "SOMEBODY ELSE´S CAR, 2005"
      The problem is the extra ´ … if I don't type it I don't get the result.
      So far I am using %=query (which isn't enough, I know)
      So the idea would be something like that:
      $selector = "sanitize(title|text)%=$q, limit=50";
      I know, it's not gonna work like that … just to illustrate.
      Best,
      Stefan
    • By dandeckr
      Hello!
      I'm making my way through my first encounter with ProcessWire, and I'm very near the end of my tasks! I've searched Google, these forums, and for add-ons, but I haven't found any documentation or reference work for implementing boolean searching in the native CMS? Am I missing a thread, add-on, or docs that can point the way? I'm sure I'm not the first to have a need like this? Thanks in advance! 
×
×
  • Create New...