Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-10-19 12:17:35

fantasmo
Member
Registered: 2010-05-05
Posts: 40

Double search results - how to use only the custom searchform output?

Hi, I’m having trouble with the search results code take from “textbook”

I’m using:

<txp:if_search>
<txp:article pgonly="1" limit="10" />
<txp:if_search_results>
<p>These articles match your search request: </p> <txp:article limit="10" searchform="results" />
<txp:else />
<p>Sorry, we were not able to find a page matching your search request <strong><txp:search_term /></strong>.</p>
</txp:if_search_results>
</txp:if_search>

It shows me the search results styled with my own form called “results”
AND after these it shows me the same results again, not really styled just with a basic textpattern default styling.

How do I get rid of this second result list? I tried to delete the parts <txp:article limit...> and also <txp:article pgonly...> but that doesn’t work, wether there are no results at all or there are only these which I don’t want to have (these second one without my form styling).

Offline

#2 2010-10-19 12:32:00

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: Double search results - how to use only the custom searchform output?

Hi

why deleting the first <txp:article pgonly=“1” limit=“10” /> dont solve your problem?

Cheers

Offline

#3 2010-10-19 13:50:24

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Double search results - how to use only the custom searchform output?

There must be an article tag later on the page; that’s what’s causing the unwanted output.


Code is topiary

Offline

Board footer

Powered by FluxBB