Пошук по сайту на Drupal можна організувати декількома способами:
1) Використовувати вбудований модуль Search. Цей модуль проводить пошук безпосередньо за вмістом бази даних Drupal. Цей модуль працює за принципом знаходження підстрічки у тексті без будь-якого лінгвістичного аналізу цього тексту, що фактично унеможливлює його використання для україномовних текстів (через такі словоформи як відмінки, наявність множини та родів).
2) Використовувати одну з пошукових машин (наприклад, Google). У цьому випадку забезпечується уникнення усіх недоліків модуля Search, пов'язаних з відсутністю лінгвістичного аналізу тексту.
Для вбудовування пошукової машини Google можна або написати власний фрагмент HTML-коду для виклику пошуку Google, або скористатися одним із існуючих модулів, які автоматизують виклик пошуку Google.
Наприклад, можна створити окремий блок на основі такого HTML-коду:
<form method="get" action="http://www.google.com/custom" target="_top"> <table border="0"> <tr><td nowrap="nowrap" valign="top" align="left" height="32"> <a target=_top href="http://www.google.com/"> <img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google"></img></a> <input type="hidden" name="domains" value="mysite.net"></input> <br/> <input type="text" name="q" size="16" maxlength="255" value=""></input> <input type="submit" name="sa" value="Шукати"></input> </td></tr> <tr> <td nowrap="nowrap"> <table> <tr> <td> <input type="radio" name="sitesearch" value=""></input> <font size="-1" color="#000000">Web</font> </td> <td> <input type="radio" name="sitesearch" value="mysite.net" checked="checked"></input> <font size="-1" color="#000000">mysite.net</font> </td> </tr> </table> <input type="hidden" name="client" value="pub-6402263150546621"></input> <input type="hidden" name="forid" value="1"></input> <input type="hidden" name="ie" value="UTF-8"></input> <input type="hidden" name="oe" value="UTF-8"></input> <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"></input> <input type="hidden" name="hl" value="en"></input> </td></tr></table> </form>
Результати пошуку будуть виводитися на окремій сторінці Google для сайту mysite.net.
Аналогічного результату можна добитися за допомогою модуля Google Search (http://drupal.org/project/googlesearch), який автоматично створює блок для пошуку Google.
Недоліком наведеного HTML-коду та модуля Google Search є перехід з сторінки сайту на сторінку пошукової машини Google. Для уникнення цієї незручності можна скористатися такими модулями:
1) Google Ajax Search (http://drupal.org/project/googleajaxsearch) .
2) Google Custom Search Engine (http://drupal.org/project/google_cse).
Налаштування цих модулів є подібне: пошук здійснюється на основі Користувацької пошукової машини Google (Google Custom Search Engine, http://www.google.com/coop/manage/cse/). Однак у першому модулі вивід здійснюється у межах блоку (тобто у правій або лівій колонці), а в другому – в основному інформаційному блоці. Крім того перший модуль використовує технологію AJAX. Загалом Google Ajax Search виглядає більш потужним за різними установками ніж Google Custom Search Engine. Однак істотним його недоліком є слабша підтримка зі сторони розробників (на момент написання цієї статті Google Ajax Search був доступний у версіях 5.x-1.0 та 4.7.x-1.x-dev, тоді як Google Custom Search Engine – у версіях 6.x-1.2 та 5.x-1.6).
Джерело http://pzhe.net/ua/drupal/search
Comments
Nice article having nice
Nice article having nice information. It is very important for a person to get some expertise, if he wants to get high excellence in his career 70-662 suppose if u are working in the field of the Information Technology & want to achieve high excellence in that specific field then u have to clear 70-562 certification exams Here u can also get 70-536 exam questions to prepare your certification in better way
Don Ed Hardy is an American
Don Ed Hardy is an American tattoo artist raised in Southern California. He was a pupil of Sailor Jerry Collins
ed hardy
cheap ed hardy
Official Ed Hardy Online Shop - offering you vintage tattoo inspired fashion and lifestyle for men, ed hardy women, and ed hardy children
evening dresses for dresses, 2010 prom dresses, homecoming dresses, formal dresses, and evening wear. Find formal dresses for prom and bridesmaids
evening dresses
cocktail dresses
Evening Dresses and Gowns, Mother of the Bride Dresses, Formal Dresses, in Missy and Plus sizes for immediate delivery.
Wide Collection of Prom Dresses, Evening Dresses and Gowns, Cocktail Dresses, Wedding Dresses,
Little Black Dresses, beaded dresses, ball gowns and Black
formal gowns
Good looking
Interpersonal love refers to love between human beings. It is a more potent sentiment than a simple liking for another. Unrequited love refers to those feelings of love that are not reciprocated. Interpersonal love is most closely associated with corporate gifts interpersonal relationships. Such love might exist between family members, friends, and couples. There are also a number of psychological disorders related to love, such as erotomania.
Good
The iPod line came from Apple's "digital hub" category,[4] when the company began creating software for the growing market of personal digital devices. Digital cameras, camcorders and organizers had well-established mainstream markets, but the company found existing digital music players "big and clunky or small and useless" with user interfaces that were "unbelievably awful,"[4] so Apple decided to develop its own. As ordered by CEO Steve Jobs, Apple's hardware engineering chief Jon Rubinstein assembled a team of engineers to design the iPod line, including hardware engineers Tony Fadell and Michael Dhuey,[5] and design engineer Jonathan Ive.[4] The product was developed in less than one year and unveiled on 23 October 2001. Jobs announced it as a Mac-compatible.
_____________________________________________
I have hoodia , buy tramadol and xanax online