Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-17 12:38:05

ekutsenko
Member
From: Ukraine
Registered: 2005-08-16
Posts: 11
Website

Paging in the search results

When I perform search on my site and it returns more than 10 result I always got links “Oldest” which (as I think) should follow to next page.

It looks like this: http://www.mydomain.com/?pg=2&q=search_term

And this second page always empty!

Is there any way to display all search results on the same page?

Thanks!

Last edited by ekutsenko (2006-01-17 12:38:40)

Offline

#2 2006-01-17 14:56:19

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

Re: Paging in the search results

You can always do this:
<code>
<txp:if_search>
<txp:article limit=“999” />
</txp:if_search>
</code>
There is also zem’s article about search and paginating.

Offline

#3 2006-01-17 22:15:10

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Paging in the search results

This should work fine. Make sure you’re using the latest version of Textpattern, and see here.


Alex

Offline

Board footer

Powered by FluxBB