Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
Offline
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
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
Pages: 1