MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Nov 21, 2008, 08:09 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search via SMF
or Google:
modx forums
all of modxcms.com
web
MODxCMS.com
Forums
Help
Login
Register
News
:Donate to MODx:
Donations
MODx Community Forums
»
Add-ons, Extensions & Elements
»
Module, Plugin & Snippet Usage
(Moderators:
zi
,
PaulGregory
)
»
[Snippet] Little modification of FlexSearchForm
Pages: [
1
]
2
Go Down
« Previous topic
Next topic »
Print
Author
Topic: [Snippet] Little modification of FlexSearchForm (Read 7780 times)
0 Members and 1 Guest are viewing this topic.
MadeMyDay
Moderators
Posts: 834
[Snippet] Little modification of FlexSearchForm
«
on:
Feb 07, 2006, 03:01 PM »
Hi,
I just modificated the FlexSearchForm a bit and think perhaps someone is interested in it
My problem was that I built a site and didn´t fill out the description of the pages and so the search results are not that informative (as the results on the modxcms page). That was the first time I found something that joomla does better, so I transferred that functionality to modX.
What it does: With displaying search results you´ll get an extract of the context with highlighted search term. Also multiple words are possible and are highlighted the google way
See example here:
www.mademyday.de/ifa
Search for example for "familie" (german site), you will see what it does.
In the snippet you can configure the variable $extract to either true or false, which will (surprise!) show the extract or not. There are two CSS classes used, FSF_extract for the div container with the extract and a span class called FSF_highlight for highlighting the text in this extract (yellow background in the example above)
This is not the standard FSF, I translated some words and changed a few settings, but I think you guys will get it (no time to put in the standard FSF yet).
Greetz Marc
EDIT: New version with different colors for every phrase (FSF_highlight1, FSF_highlight2 etc.)
FlexSearchForm.txt
(17.23 KB - downloaded 448 times.)
«
Last Edit: Feb 07, 2006, 06:07 PM by MadeMyDay
»
Logged
http://www.modxcms.de
|
Webdesign Karlsruhe
rthrash
Foundation
Posts: 9,515
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #1 on:
Feb 07, 2006, 04:10 PM »
OK so that absuletly rocks. We will most likely add this to the default core distribution... thanks!
Any way to have it use an array of color definitions when putting in multi-item searches, like searching for "familie durch Doppel".
Logged
MODx
is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you
help us help you
,
read the wiki
, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together.
MODx
Current
|
Dev
|
SVN Root
|
JIRA (Bugs)
|
Confluence (097 Wiki)
|
Fisheye SVN Browser
MadeMyDay
Moderators
Posts: 834
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #2 on:
Feb 07, 2006, 04:16 PM »
Quote
OK so that absuletly rocks. We will most likely add this to the default core distribution... thanks!
You´re welcome, glad to give a little bit back to you guys
Quote
Any way to have it use an array of color definitions when putting in multi-item searches, like searching for "familie durch Doppel".
Don´t understand now, do you mean seperate definitions for the terms? E.g. "familie" in yellow, "doppel" in blue and so on? I´ll try
Greetz Marc
Logged
http://www.modxcms.de
|
Webdesign Karlsruhe
rthrash
Foundation
Posts: 9,515
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #3 on:
Feb 07, 2006, 04:34 PM »
exactly mark...it's the way that Google does it I think for cached page views:
http://64.233.179.104/search?q=cache:qEqwrLh01bkJ:www.angelfire.com/gundam/simplykat/blog/+one+two+threee&hl=en&gl=us&ct=clnk&cd=1&client=safari
Logged
MODx
is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you
help us help you
,
read the wiki
, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together.
MODx
Current
|
Dev
|
SVN Root
|
JIRA (Bugs)
|
Confluence (097 Wiki)
|
Fisheye SVN Browser
MadeMyDay
Moderators
Posts: 834
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #4 on:
Feb 07, 2006, 04:39 PM »
No problem I think. What do you think is better: To highlight like <span class="FSF_highlight1">one</span> some text <span class="highlight2">two</span>bla bla text... or to define the colors in an array in the snippet itself? I would prefer to define highlight1-x in the CSS. (I already did that local, just have to highlight the search header like googel
).
Greetz Mar
c
Logged
http://www.modxcms.de
|
Webdesign Karlsruhe
steph
Member
Posts: 85
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #5 on:
Feb 07, 2006, 04:46 PM »
Thanks Marc, that's great, just what I was looking for.
For anyone who wants English, here it is with all config back to the modx defaults.
Steph
FlexSearchForm.txt
(16.38 KB - downloaded 307 times.)
Logged
Stephan Dale
http://mindspill.net/computing/cross-platform-notes/modx.html
modx(a)mindspill.net
Briggsy
Sr. Member
Posts: 372
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #6 on:
Feb 07, 2006, 05:45 PM »
Awesome, can't wait to get back from my few days away on courses and implement it.
Had trouble with the original highlight option (think it was Sottwells) so be cool to bust this one out and have a go
Logged
Emergency Management Academy of New Zealand
http://www.emanz.ac.nz
MODx Sandbox
Login: sandbox Password: castle
Admin Sandbox
Login: sandbox Password: castle
MadeMyDay
Moderators
Posts: 834
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #7 on:
Feb 07, 2006, 05:45 PM »
Okay, here we go:
www.mademyday.de/ifa
Try with Ryan´s funny search "familie doppel durch" (means family double through
).
Changed the attachement from the first post.
@Steph: Would you be so kind to translate/set it back to standard, have to finish this site this night (we have 1 o´clock here) :-/
Greetz Marc
PS: I´m not a coder, this could surely be more properly, so if anyone likes to improve it... go on
Logged
http://www.modxcms.de
|
Webdesign Karlsruhe
rthrash
Foundation
Posts: 9,515
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #8 on:
Feb 07, 2006, 06:03 PM »
Nice work! You going to update the source and share for everyone here?
Logged
MODx
is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you
help us help you
,
read the wiki
, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together.
MODx
Current
|
Dev
|
SVN Root
|
JIRA (Bugs)
|
Confluence (097 Wiki)
|
Fisheye SVN Browser
MadeMyDay
Moderators
Posts: 834
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #9 on:
Feb 07, 2006, 06:06 PM »
Quote
Changed the attachement from the first post.
Quote
EDIT: New version with different colors for every phrase (FSF_highlight1, FSF_highlight2 etc.)
Logged
http://www.modxcms.de
|
Webdesign Karlsruhe
rthrash
Foundation
Posts: 9,515
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #10 on:
Feb 07, 2006, 06:07 PM »
Totally missed those. lol
Logged
MODx
is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you
help us help you
,
read the wiki
, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together.
MODx
Current
|
Dev
|
SVN Root
|
JIRA (Bugs)
|
Confluence (097 Wiki)
|
Fisheye SVN Browser
steph
Member
Posts: 85
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #11 on:
Feb 07, 2006, 06:24 PM »
English version.
FlexSearchForm.txt
(17.25 KB - downloaded 342 times.)
Logged
Stephan Dale
http://mindspill.net/computing/cross-platform-notes/modx.html
modx(a)mindspill.net
MadeMyDay
Moderators
Posts: 834
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #12 on:
Feb 07, 2006, 06:26 PM »
thx steph
Logged
http://www.modxcms.de
|
Webdesign Karlsruhe
Mark
Coding Team
Posts: 3,247
Ditto Developer
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #13 on:
Feb 08, 2006, 12:14 AM »
One word...AWESOME!!!
Marc --- THIS ROCKS!!!
Logged
Documentation
TRAC (Bugtracker)
Forum
How to get help
User Wiki
Credits
SVN Server
Ditto HQ
Stable Download
Development Download
xwisdom
Foundation
Posts: 1,732
Re: [Snippet] Little modification of FlexSearchForm
«
Reply #14 on:
Feb 08, 2006, 12:42 AM »
Very nice snippet Marc!
Does your version also searchs the summary fields?
The only thing that's needed now for this snippet is for it to support more input params and a template (&tpl)
Logged
xWisdom
www.xwisdomhtml.com
The fear of the Lord is the beginning of wisdom:
MODx Co-Founder
- Create and do more with less.
Pages: [
1
]
2
Go Up
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
=> Internationalization
===> Bulgarian
===> Chinese
===> Czech
===> Dutch
===> French
===> German
===> Irish
===> Italian
===> Japanese
===> Polish
===> Portuguese
===> Russian
===> Slovak
===> Spanish
===> Swedish
===> Persian - فارسي
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.2
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder & DropMenu
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> QuickEdit
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Polls, Calendars, Address Book and Community
=> Third-party integrations
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> Backup & Versioning
===> Doc Finder
===> ManagerManager
===> PHx
=> Templates
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Web Design and Development
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
Czech Community
-----------------------------
=> Oznámení
===> Důležitá oznámení/novinky
===> Bezpečnost
=> Podpora
===> FAQ (často kladené otázky)
===> Instalace
===> Moduly, pluginy, "snippets & code" (šablony zdrojových kódů)
===> Design & Šablony
=> Dokumentace, tutoriály (návody) a překlady
===> Dokumentace
===> Tutoriály (návody)
===> Překlady (lokalizace)
=> Komunita
===> Oznámení
===> Představte se, prosím
===> Ukázky práce
===> Různé aneb cokoli co se jinam nehodí
-----------------------------
Bulgarian Community
-----------------------------
=> Поддръжка
===> Често задавани въпроси
===> Инсталация
===> Модули, Плъгини, Снипети и код
===> Дизайн и Шаблони
=> Документация, Ръководства и Превод
===> Документация
===> Ръководства
===> Превод
=> Общество
===> Съобщения
===> Представете се
===> Представете сайта си
===> Дискусии извън MODx
-----------------------------
Dutch Community
-----------------------------
=> Ondersteuning
===> Veel gestelde vragen
===> Modules, Plugins, Snippets & Code
===> Design & Templates
=> Documentatie, Tutorials en Vertalingen
===> Documentatie
===> Tutorials
===> Vertalingen
=> Community
===> Aankondigingen
===> Stel jezelf voor
===> Site Showcase
===> De stamkroeg
-----------------------------
Finnish Community
-----------------------------
=> Tuki
===> UKK
===> Asennus
===> Moduulit, liitännäiset, koodinpätkät
===> Ulkoasu/Sivustopohjat
=> Dokumentaatio, oppaat ja käännökset
===> Dokumentaatio
===> Käännökset
===> Oppaat
=> Yhteisö
===> Tiedotteet
===> Esittele itsesi
===> MODx sivustosi
===> Kahvihuone
-----------------------------
Filipino Community
-----------------------------
=> Suporta
===> Kadalasang tanong
===> Instalasyon
===> Moduler, Maidadagdag, Karagdagang mga Code
===> Desenyo at Templates
=> Dokumentasyon, Mga Turo, Mga Salin
===> Dokumentasyon
===> Mga Turo
===> Mga Salin
=> Kumunidad
===> Anunsyo
===> Ipakilala ang sarili
===> Ang Galing ng pinoy
===> Tsismisan atbp
-----------------------------
French Community
-----------------------------
=> Support
===> FAQ
===> Installation
===> Module, plugin, snippets
===> Design/Templates
=> Documentation, Tutoriels et Traductions
===> Documentation
===> Traduction
===> Tutoriels
=> Communauté
===> Annonces
===> Présentez vous
===> Vos sites
===> Le Bistrot Français
-----------------------------
German Community
-----------------------------
=> Support (de)
===> FAQ (de)
===> Installation (de)
===> Module, Plugins, Snippets & Code (de)
===> Design & Templates (de)
=> Dokumentation, Tutorials und Übersetzung
===> Dokumentation
===> Tutorials (de)
===> Übersetzung
=> Community (de)
===> Ankündigungen
===> Stellt Euch vor
===> Beispielseiten
===> Off Topic / Verschiedenes
-----------------------------
Irish Community
-----------------------------
=> Tacaíocht
===> CC Ceisteanna Coitianta
===> Breiseáin (cláir bhreise), Snippets & Comhaid
===> Suiteáil
===> Dearadh & Teimpléid
=> Doiciméid, Teagascóireacht agus Aistriúchán
===> Doiciméadú
===> Teagascóireacht
===> Aistriúchán
=> Pobal
===> Fógraí
===> Cuir Tú Féin in Aithne
===> Gailearaí an Láithreáin
===> Caifé / An Tábhairne / Ábhar Cainte Eile / Ilghnéitheach
-----------------------------
Italian Community
-----------------------------
=> Supporto
===> FAQ
===> Installazione
===> Moduli, Plugin, Snippet e altro codice
===> Web Design e Template
=> Documentazione, Tutorial e Traduzione
===> Documentazione
===> Tutorial
===> Traduzione
=> Comunità
===> Annunci
===> Presentazioni
===> Siti in vetrina
===> Chiacchiere in libertà
-----------------------------
Japanese Community
-----------------------------
=> サポート
===> 良くある質問
===> インストール
===> モジュール・プラグイン・スニペット・本体
===> デザインやテンプレート
=> マニュアル・テュートリアル・翻訳
===> マニュアル
===> 事例集、テュートリアル
===> 日本語化
=> コミュニティ
===> お知らせ
===> MODxサイト展示場
===> 自己紹介
===> 雑談
===> 国産リソース
-----------------------------
Persian Community
-----------------------------
=> پشتيباني
===> راهنما
===> نصب
===> ماژول , پلاگین ها , کد ها و جزییات
===> طراحی و قالب ها
=> مستند سازی , آموزش ها و ترجمه ها
===> مستند سازی
===> آموزش ها
===> ترجمه ها
=> انجمن ها
===> اخبار
===> معرفی کردن خود
===> نمایش دادن سایت ها
===> بحث های عمومی و سایر موضوعات
-----------------------------
Polish Community
-----------------------------
=> Wsparcie
===> FAQ
===> Instalacja
===> Moduły, pluginy, snipety i kod
===> Wygląd i szablony
=> Dokumentacja, tutoriale i tłumaczenie
===> Dokumentacja
===> Tutoriale
===> Tłumaczenie
=> Społeczność
===> Ogłoszenia
===> Przedstaw się
===> Twój serwis WWW
===> Hyde Park
-----------------------------
Portuguese Community
-----------------------------
=> Suporte
===> FAQ - Dúvidas Frequentes
===> Instalação
===> Módulos, Plugins, Snippets e Código
===> Design e Templates
=> Documentação, Guias e Traduções
===> Documentação
===> Guias
===> Traduções
=> Comunidade
===> Anúncios
===> Apresente-se!
===> Bar da esquina (fora de tópico)
===> Portfólio de Sites
-----------------------------
Russian Community
-----------------------------
=> Поддержка
===> ЧАВО (FAQ)
===> Установка
===> Модули, плагины, сниппеты и код
===> Дизайны и шаблоны
=> Документация, Уроки, Перевод
===> Документация
===> Уроки
===> Перевод
=> Сообщество
===> Объявления
===> Представьтесь публике
===> Галерея сайтов
===> Диван
-----------------------------
Scandinavian Community
-----------------------------
=> Support
===> Frågor och svar
===> Installation
===> Moduler, plugins, snippets och kod
===> Design & sidmallar
=> Dokumentation, guider och översättningar
===> Dokumentation
===> Guider
===> Översättningar
=> Webbgemenskap
===> Meddelanden
===> Presentera dig själv
===> Visa upp dina webbsidor
===> Ordet fritt
-----------------------------
Spanish Community
-----------------------------
=> Soporte
===> FAQ
===> Instalación
===> Modulos, Plugins, Snippets & Código
===> Diseño y plantillas
=> Documentación, Tutoriales y Traducciones
===> Documentatción
===> Tutoriales
===> Traducciones
=> Comunidad
===> Anuncios
===> Presentaciones personales
===> Muestra de sitios
===> El Café
-----------------------------
TÜRKÇE (Turkish)
-----------------------------
=> Destek
===> SSS
===> Kurulum
===> Modüller, Pluginler, Snippetlar & Kodlar
===> Dizayn & Temalar
=> Belgeleme, Eğitmenler ve Çeviri
===> Belgeleme
===> Eğitmenler
===> Çeviri
=> Topluluk
===> Duyurular
===> Kendinizi Tanıtın
===> Site Vitrini
===> Konu Dışı