You are not logged in.
I really can’t take too much credit for this one. Almost all of the work on this was already done by Markus Kniebes who created the LiveSearch Extension for Textpattern which in turn is based on the BitFlux LiveSearch Solution.
I made some updates for RC3, added a few options to customize your search form/results and wrapped it all up into a plugin with a simple installation/setup process. You can see it running now at wilshire|one.
Last edited by wilshire (2006-09-26 02:22:26)
Offline
hi,
great work! but some questions:
1. why do you use the p-tag around the formfields and not the fieldset-tag?
2. whats the intention behind the ins-tags around the results?
greetings.
Samui? Samui! (about the life as farang in thailand)
David’s Neighbour
Offline
To be honest I didn’t pay much attention to the form. I was just happy that the live searching was working.
This is the forum that Markus uses so I went with it. I’ll look at changing it to something more standard.
Offline
ah, i see. i rewrote the form that time he released it, because it was not xhmlt1.1-conform. the ins is quite logic, because something will be inserted, but the p is at the wrong place, i think. at my page it works with fieldset.
greetings.
Samui? Samui! (about the life as farang in thailand)
David’s Neighbour
Offline
OK, this is truly awesome, but I have a question. I followed the directions, added the CSS and tags, but the live search only returns an image of my homepage. I do have a custom form for outputting search results called “search_results” but even when I add <code>searchto=“search_results”</code> as an attribute, nothing changes. Any help would be appreciated.
Kevin
graphicpush
Offline
Thanks Rob, nice plugin. The styling is quite tricky however…
Oh, I think it lack a submit button. A lot of people are lost without it.
Kevin, if you have latest RC3, you don’t need the searchto (unless you know what you are doing), bu in your default section you need a a txp:article tag calling the search_results form. Use the conditionnal tags (if search and so on, look at Textbook for details) to not destroy your frontpage.
Last edited by Jeremie (2005-05-06 14:14:56)
Offline
Kevin – searchto is used when you actually submit the search form, not for the live search itself. What its used for is to direct the search form to post to a subdirectory. For example, my search form posts to wilshireone.com/search rather than the root directory as Textpattern does by default. It sounds like the problem your having is relating to pathing in the javascript. Is this in a subdirectory? Is it at a URL I can take a look at?
Jeremie – I could add an option to display the submit button.
Offline
Here is a test page with a live search on the left:
http://www.graphicpush.com/index.php?s=linkage
The actual page has this TXP code: <code><txp:rss_live_search label=“Type To Search:” searchto=“search” /></code> since I use the “search” section for all search queries (which works perfectly for normal search).
Kevin
graphicpush
Offline
Thank you for this plugin, I’ve got it working already! Just one thing: I can’t figure out how to style the search input field and the ul. Can someone give me a clue?
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline
great plugin:
I, like Kevin get another copy of the whole page in the popup.
Updated the version, works-a like-a charm! Now for some css.
Oh, and how do you stop firefox from offering previous entries for that form, kinda gets in the way.
Last edited by mrdale (2005-05-06 17:56:38)
Offline