Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2012-08-02 11:05:05

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,397
Website GitHub Mastodon Twitter

Re: doubled search results

Did you try this?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#17 2012-08-02 11:15:05

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

Re: doubled search results

colak wrote:

Did you try this?

yes, didn’t help. and it doubled the content in whole site as well

Last edited by Gallex (2012-08-02 11:15:29)

Offline

#18 2012-08-02 11:25:35

etc
Developer
Registered: 2010-11-11
Posts: 5,689
Website GitHub

Re: doubled search results

What this gives?

<txp:if_search>
  <txp:article limit="99" pgonly="1" />
  <txp:if_search_results>
    <p>search results: <txp:search_result_count /></p>
    <txp:article limit="99">
<h3 class="entry-title"><txp:permlink><txp:title /></txp:permlink></h3>
<p class="published"><txp:posted /></p>
<p class="entry-summary"><txp:search_result_excerpt /></p>
<p class="small"><txp:permlink><txp:permlink /></txp:permlink></p>
<div class="divider"><txp:image id="1" /></div>
</txp:article>
  <txp:else />
    <p>nothing found <strong><txp:search_term /></strong>.</p>
  </txp:if_search_results>
<txp:else />
 <txp:if_section name=" ,uudised">
	<txp:article status="sticky" />
	<txp:article limit="3" />
	<txp:newer />
	<txp:older />
 </txp:if_section>
</txp:if_search>

Offline

#19 2012-08-02 11:30:03

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

Re: doubled search results

big sorry guys!
etc was right here
i didn’t do excatly like he said, i moved only first part. but now i moved all if_section parts and problem solved. thank you!

p.s. but what the tag error at the top of the page trying to tell me? i can’t find such code from my page…

Offline

#20 2012-08-02 11:45:28

etc
Developer
Registered: 2010-11-11
Posts: 5,689
Website GitHub

Re: doubled search results

Gallex wrote:

p.s. but what the tag error at the top of the page trying to tell me? i can’t find such code from my page…

Possibly a tiny txp bug, won’t show itself in live mode, but the devs should check $rs in category_list().

Offline

Board footer

Powered by FluxBB