Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-15 12:06:41

intuitive
Member
From: Spain
Registered: 2006-06-06
Posts: 22
Website

search results not working

We managed to put a little shop together with texpattern and e-junkie that’s working out pretty good. I’m having a problem with the search though. http://www.intuitivedesigns.net/shop The problem is that if you use the search form on the right, the results don’t display right. For example, if you do a search for “globe”, it just shows the latest products, but not the matching results.

I’m sure I just have something configured wrong, but I can’t figure out how to do it. What should I put in my template to display the results properly?

Thanks!

Offline

#2 2007-11-15 15:26:36

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,349
Website GitHub Mastodon Twitter

Re: search results not working

Can you please let us know what you have in your template?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2007-11-15 15:36:23

intuitive
Member
From: Spain
Registered: 2006-06-06
Posts: 22
Website

Re: search results not working

Um, I’m not sure what you mean. The whole page or just the results snippet I have?

Here is what I have to show for the results that isn’t working, but I’m not sure this is right at all. Sorry for being vague, wasn’t my intention.

<txp:if_search_results> <txp:article_custom section="shop" sortby="Posted" sortdir="desc" listform="excerpt_shop" /> <txp:else /> <p>Sorry, we were not able to find a page matching your search request <strong><txp:search_term /></strong>.</p> </txp:if_search_results>

Offline

#4 2007-11-15 16:42:50

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: search results not working

Just replace <txp:article_custom /> with <txp:article />, which is content sensitive, when article_custom isn’t.

Cheers!

Offline

#5 2007-11-15 17:14:28

intuitive
Member
From: Spain
Registered: 2006-06-06
Posts: 22
Website

Re: search results not working

hmmm, still not working. I put this just to test to see if it would show anything and still it just shows my shop home page all jumbled:

<txp:if_search_results> Here are your results.... <txp:else /> <p>Sorry, we were not able to find a page matching your search request <strong><txp:search_term /></strong>.</p> </txp:if_search_results>

I wonder if my search is just buggy or something? Or maybe my search form is wrong? Here is my search form:

<txp:search_input label="Search" button="Search" size="15" wraptag="p" section="shop" />

Offline

#6 2007-11-15 17:18:48

intuitive
Member
From: Spain
Registered: 2006-06-06
Posts: 22
Website

Re: search results not working

ok, it is my form. I took out section=“shop” on the form input and now the results show. Weird thing.

Offline

Board footer

Powered by FluxBB