Textpattern Forum

You are not logged in. Register | Login | Help

#1 2005-05-06 04:21:23

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

[plugin] [ORPHAN] rss_live_search

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.

Download rss_live_search

More Details

Last edited by wilshire (2006-09-26 02:22:26)

Offline

#2 2005-05-06 05:30:26

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: [plugin] [ORPHAN] rss_live_search

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

#3 2005-05-06 11:55:32

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: [plugin] [ORPHAN] rss_live_search

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

#4 2005-05-06 12:00:39

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: [plugin] [ORPHAN] rss_live_search

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

#5 2005-05-06 13:24:11

kevinpotts
Member
From: Kansas City
Registered: 2004-12-07
Posts: 364
Website

Re: [plugin] [ORPHAN] rss_live_search

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.

Offline

#6 2005-05-06 14:02:15

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [plugin] [ORPHAN] rss_live_search

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

#7 2005-05-06 15:12:10

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: [plugin] [ORPHAN] rss_live_search

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

#8 2005-05-06 15:38:49

kevinpotts
Member
From: Kansas City
Registered: 2004-12-07
Posts: 364
Website

Re: [plugin] [ORPHAN] rss_live_search

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).

Offline

#9 2005-05-06 15:53:26

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,397
Website

Re: [plugin] [ORPHAN] rss_live_search

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

#10 2005-05-06 16:11:07

mrdale
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,066
Website

Re: [plugin] [ORPHAN] rss_live_search

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

Board footer

Powered by FluxBB