Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-23 19:53:14

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Having a problem with search_results_count

I wanted to put a heading at the top of my search results, followed by the number of returned results and then the results themselves

I can get the header and the search results no problem, but the results count is giving me problems.

If I place the tag under the header it never displays the count, if I put it in the search_results form, it displays the count with every item in the results (one too many for the first item).

The only place it works properly is if I put it at the bottom of the page after the list of search_results.

Am I doing something wrong or is this normal behaviour? I’m guessing that the value isn’t available until after the results are available for display but the page parsing is done first so I’m not getting a value. Frustrating.


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#2 2006-07-23 20:11:12

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

Re: Having a problem with search_results_count

It’s normal behaviour. <txp:article pgonly=1 /> will help. Read zem’s article.

Offline

#3 2006-07-23 21:24:08

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: Having a problem with search_results_count

Thanks that worked once I made a seperate search section for the results.

Last edited by NyteOwl (2006-07-23 21:53:53)


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

Board footer

Powered by FluxBB