Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-08-17 08:39:24

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

txp:search_result_count

Redesigning my site, The Turning Gate, and having a problem with search results. The txp:search_result_count tag is displaying its text, but isn’t displaying the numerical count of search results. Here’s the code from my default page:

<txp:if_search> <p style=“margin: 2em 0;”><txp:search_result_count /></p> <txp:article limit=“9999” form=“search_results” />

<txp:else />

<txp:if_article_list> <txp:article limit=“1” form=“article-front” /> </txp:if_article_list>

<txp:if_individual_article> <txp:article /> </txp:if_individual_article>

</txp:if_search>

And my search results form looks like this:

<div class=“searchresult”>
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<p><txp:search_result_excerpt /><br/>
<small><txp:permlink><txp:permlink /></txp:permlink> &middot; <txp:posted /></small></p>
</div>

Offline

#2 2007-08-17 10:42:36

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

Re: txp:search_result_count

Try placing <txp:article pgonly="1" /> before <txp:search_result_count />.

Offline

#3 2007-08-17 13:42:29

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

Re: txp:search_result_count

Beautiful!! Thank you!!

Offline

Board footer

Powered by FluxBB