Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2012-08-02 10:13:04

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

Re: doubled search results

this tag error at the top:

Tag error:  <txp:category_list type="article" wraptag="ul" break="li" section='<txp:section />' parent='<txp:section />' exclude='<txp:section />'> ->  Notice: Undefined variable: rs  on line 1185
textpattern/publish.php:1188 category_list()...

can’t cause this double content problem?
and where it comes at all? i can’t find this part of code from my page…

Last edited by Gallex (2012-08-02 10:13:35)

Offline

#14 2012-08-02 10:18:15

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

Re: doubled search results

At least, something changes :) Have you moved it (and not copied)?

Offline

#15 2012-08-02 10:43:23

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

Re: doubled search results

copied ;)
but now moved and this made my frontpage more messy. restored back to:


<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:if_search>

Offline

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

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
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,315

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,397
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,315

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,397
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