Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-24 23:06:05

ABDC
Member
From: the Netherlands
Registered: 2006-08-14
Posts: 17
Website

Number of search results not displayed since upgrade to 4.0.6

Since I upgraded to version 4.0.6. the number of search results is not shown any more when I search. I worked good before that with 4.0.5. I tried surrounding the tag with the if_search, as suggested:

<txp:if_search>
<p><txp:search_result_count /><br>
Je hebt gezocht op: <txp:search_term /></p>
</txp:if_search>

The search term is displayed properly (this was the reason I decided to upgrade), but the result count not, I just get the standard text (“artikelen gevonden” in my case) without a number. Could this be a bug in 4.0.6?

Offline

#2 2008-02-25 00:26:17

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Number of search results not displayed since upgrade to 4.0.6

you need the article tag before the search result count.

Offline

#3 2008-02-25 00:50:40

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Number of search results not displayed since upgrade to 4.0.6

It couldn’t have worked before. You’ve likely changed smething, namely it’s position on the page, or you had an additional article tag using the pgonly attribute before it (which is still how you would achieve it).

Offline

#4 2008-02-25 08:26:58

ABDC
Member
From: the Netherlands
Registered: 2006-08-14
Posts: 17
Website

Re: Number of search results not displayed since upgrade to 4.0.6

Strangely enough it did work before; but I must have changed something else as well… Indeed; I put the count at the top of the page! Thanks Steve and thank you Mary for the solution!

Offline

Board footer

Powered by FluxBB