Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-27 09:57:46

spudz
Member
Registered: 2005-12-09
Posts: 28

Search not producing correct results

I’m using LiveSearch on my blog and whenever I actually type something in LiveSearch has no problems retrieving the articles but when I hit enter it brings up a just the one article, all squished in and unformatted. Take a look at my site to help you better understand: removed

Any help is much appreciated.

Cheers.

Last edited by spudz (2012-07-29 11:05:13)

Offline

#2 2006-04-27 14:28:54

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

Re: Search not producing correct results

There is nothing wrong I think. When you click on an article title it takes you to the article. When you hit enter directly after typing your query it takes you to the search results page. It just looks like you have limit="1" in your article tag, so that it only produces one search result. You can replace your article tag with this:
<code>
<txp:if_search>
<txp:article limit=“20” />
<txp:else />
here your normal article tag
</txp:if_search>
</code>
And it’s not unformatted, it’s the way search results are displayed, it uses form ‘search_results’.

Offline

#3 2006-04-27 14:39:13

spudz
Member
Registered: 2005-12-09
Posts: 28

Re: Search not producing correct results

Its actually just
<code><txp:article></code>
I’ll try setting the limit to 20 and check what happens.

Offline

#4 2006-04-27 14:51:35

spudz
Member
Registered: 2005-12-09
Posts: 28

Re: Search not producing correct results

Ya cheers Els, sorted.

Offline

Board footer

Powered by FluxBB