Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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