Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-03-19 20:10:20

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

where-oh-where Live Search for TXP 2011

Wondering if anyone has a good “live search” thing going on a modern TXP 4.3.0 install. I’m looking to pull results from smd_tags and the title field from the textpattern table both. I’ll be implementing in a mobile view as well as full width desktop view so slim and trim and smart is important for the phone people chugging along at edge or 3/4g speeds.

I’m aware of the live search plugins that have come before but can’t seem to hack them up to date and don’t have the energy to keep trying. I’m am PHP MySQL challenged. I believe it was the wilshire one that I have running pretty well on an TXP install circa 2007.

Any sharing of what others may have done or think is a good place to start would be much appreciated.

Thanks. Love you.


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

#2 2011-03-21 18:37:33

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: where-oh-where Live Search for TXP 2011

rss-live-search appears to be working without a hitch on TXP 4.3.0

I’m assuming that it broke on the last couple TXP releases but now it jives again. Hmm… Now to see if I can get it to look at smd_tags as well as the title and body fields it already looks at well.


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

#3 2011-03-21 19:52:02

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: where-oh-where Live Search for TXP 2011

whaleen wrote:
Hmm… Now to see if I can get it to look at smd_tags as well as the title and body fields it already looks at well.

wet_haystack?

Offline

#4 2011-03-21 19:59:01

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: where-oh-where Live Search for TXP 2011

Els wrote:

wet_haystack?

This would work except that my “tags” are not stored in the textpattern table. They are in a table called smd_tags. I suppose if I used keywords from the textpattern table this would work. Or, I think smd_tags could sync with categories and I could match tags with categories… I’ll have to check it out.


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

#5 2011-03-21 20:14:31

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: where-oh-where Live Search for TXP 2011

Oh, didn’t realise that smd_tags was different from tru_tags which uses the keywords field. wet_haystack can only search the ‘textpattern’ table.

Offline

#6 2011-03-22 02:11:43

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: where-oh-where Live Search for TXP 2011

Oh, didn’t realise that smd_tags was different from tru_tags which uses the keywords field. wet_haystack can only search the ‘textpattern’ table.

Thanks for telling me this. I didn’t realize that about tru_tags. tru_tags works well enough for my purpose so I will switch. More familiar with it anyway.

Ingredients for getting live search results from title, body, and keywords or “tags”:

  • rss_live_search
  • wet_haystack
  • tru_tags

txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

Board footer

Powered by FluxBB