Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-03-21 04:03:06

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Basic Search in TXP 4.2.0 Not Working

There is this:

<txp:search_input label="" />

And my default page has this:

<txp:if_search>
<txp:article pgonly="1" limit="20" />
<txp:search_result_count text="Hits" />
<txp:article limit="20" />
</txp:if_search />

This is about as basic a setup as it gets, yet no matter what, I can get no results to show, and the counter is always zero. I double-checked to make sure all sections had “include in site search” enabled. I am now believing this is affecting a related issue with tru_tags. I have set up dozens of search boxes in TXP for all kinds of sites (including 4.2.0) and have never run into this issue.

Are there any known plugin conflicts? I tried turning them all off, but that did not help; I was hoping to avoid deleting them completely because there is data stored in the tables.

ANY help would be appreciated — I am baffled.


Kevin
(graphicpush)

Offline

#2 2010-03-21 07:09:21

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

Re: Basic Search in TXP 4.2.0 Not Working

Hi Kevin,

Can you post a tag trace of a search results page?


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

Offline

#3 2010-03-21 08:01:27

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Basic Search in TXP 4.2.0 Not Working

  1. Could you look into source code of generated page wile site modeis set Debug and execute sql search query in your phpmyadmin or other sql-client?
  2. Are sections allowed to be searched? Look at sections tab

Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#4 2010-03-21 12:50:22

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: Basic Search in TXP 4.2.0 Not Working

No tag trace necessary … it turns out this was a stupid error on my part. I did everything right except ensure the <txp:article /> tag was showing future events. It’s funny when you don’t work in something for a month how much detail slips your brain.


Kevin
(graphicpush)

Offline

Board footer

Powered by FluxBB