Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: www-redesign
Navigation:
Lists: www-redesign: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: www-redesign@g.o
From: Thomas de Grenier de Latour <degrenier@...>
Subject: Search bar proposal
Date: Tue, 29 Nov 2005 13:48:38 +0100
Seen Curtis' blog today... nice to hear there will finally be a
search thing on the redesign.

So, i have some code to propose for that feature, that i had
already mentionned on getoo-dev@ last time it was discussed, but
that i have reworked a bit since. It is here in action:
http://tdegreni.free.fr/gentoosearch/
With the code actually in a JS file:
http://tdegreni.free.fr/gentoosearch/GentooSearch.js

The idea is to have a text search field (sure...) plus two levels
of select menus to target the search. The second level depends on
what was selected on the first:
 * Website (using Google):
   -> All www.gentoo.org
   -> Documentation
   -> Projects pages
   -> GWN: Weekly News
   -> GLEP: Enhanc. Prop.
   -> GLSA: Security Ann.
   -> Dev. Handbook
   -> The Doc
   -> Dev. pages
 * Forums (using phpBB):
   -> All
   -> ...each individual forum...
 * Mailing Lists (using GMane):
   -> All
   -> ...each ML which has GMane archives...
 * Bugs (using the bugs.g.o):
   -> All bugs
   -> Open bugs
   -> Closed bugs
 * Packages (using packages.g.o):
   -> All  (there is not much to refine here)
 * Wiki (using gentoo-wiki.org):
   -> English wiki

It now has support for I18N, which allows adding/removing/renaming
some options of the 2nd select menu depending on the browser
language. For now, i've used that for french only, in order to:
 - rename some entries, like "All" becoming "Tous"
 - for "Website", add a search for all french pages of www.g.o, one
for french documentation, one for french GWN, and one for french
dev handbook.
 - for "Forums", bump the French forum higher in the list
 - for "Wiki", add search on fr.gentoo-wiki.org

The code is now all in the JS file, and only requires an onload
event in the HTML page. I had made this change because i was
thinking to make it a GreaseMonkey script at the end if there was
finally no search form on wwwredesign, but anyway it also has the
benefit to show the form only in JS-enabled browsers, which is good
since it is required (sure we could think of having a simpler form
for non-JS browsers).

I think it is now a bit cleaner that it used to be, and would only
require little modification to be usable on wwwredesign. If you
think it worths it, feel free to do whatever is needed for
copyright or license (i've put that code in public domain). And
sure i'm available for questions/requests.

Hope that helps,

-- 
TGL.
-- 
www-redesign@g.o mailing list


Navigation:
Lists: www-redesign: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Advertisement bar
Next by thread:
search and logo
Previous by date:
Re: status of http://wwwredesign.gentoo.org
Next by date:
Re: status of http://wwwredesign.gentoo.org


Updated Jun 17, 2009

Summary: Archive of the www-redesign mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.