Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-01-27 16:05:45
- m0rt
- Member
- Registered: 2005-07-12
- Posts: 12
Message when no search results?
Is it possible to include a message when no results are returned from a search?
At the moment I’m just getting a blank page.
http://www.webdesigntimes.com/?q=fghjfghj
Offline
#2 2006-01-27 17:03:45
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Message when no search results?
You can use something like
<code>
<txp:search_result_count />
articles found.
</code>
Read zem’s article.
Last edited by doggiez (2006-01-27 17:04:42)
Offline
#3 2006-01-27 17:33:40
- m0rt
- Member
- Registered: 2005-07-12
- Posts: 12
Re: Message when no search results?
Yea, I tried that, and it displays “x articles found” when there are some articles to find, but nothing at all when there aren’t any!?!?
Last edited by m0rt (2006-01-27 17:33:55)
Offline
#4 2006-01-27 19:47:25
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Message when no search results?
I think you need <txp:article pgonly=1 />
before the search results count. Otherwise, there is nothing to count for the tag.
Offline
Re: Message when no search results?
This topic was just covered recently.
Offline
Re: Message when no search results?
You can use this plugin if you want to show something more interesting than “0 articles found.”
Offline
Pages: 1