Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-11-22 11:12:09
- shaza
- Member
- Registered: 2006-10-31
- Posts: 20
Search Not Working?
For some reason (I didnt have this problem before), when I upgraded, my search no long works. I really can’t figure out what is wrong. I have the same problem with my other site as well, which is running the recent version as well. I must be doing something wrong…
In either case here is the website:
All the articles here are listed on “live” so it should search the content, and some are really old. Im using glx_if for the search part which is what shows up when I perform a search, but even before then it didn’t search properly. _
My Search form, entitled “search_results” in article type, says the following:
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<p><txp:search_result_excerpt /><br/>
<small><txp:permlink><txp:permlink /></txp:permlink> ·
<txp:posted /></small></p>
And then the form with the glx_if plugin has the following, although I doubt this is effecting it, since without it ~ it still didnt work.
<txp:output_form form="header" />
<!-- content news-->
<txp:glx_if_search>
<h1>Your Search Results</h1>
<p class="indent">Below, you can find your search results</p>
<txp:search_input button="Go!" size="15" wraptag="p" label="Perform another search?" />
</txp:glx_if_search>
Last edited by shaza (2007-11-22 11:19:59)
Offline
Re: Search Not Working?
You have an extra </txp:permlink> in search results, so that might make a difference.
Dozy P My attempt at music
Offline
Re: Search Not Working?
And one another thing: why are you using glx_if_search, as glx_if_seach is really old plugin, and all it’s conditional are included in Textpattern by default. So you should just use <txp:if_search> instead
You have an extra </txp:permlink> in search results, so that might make a difference.
I can’t see it :S I can only see <txp:permlink><txp:permlink /></txp:permlink> – so maybe that aint’ the issue ;) Maybe it’s that your example lacks <txp:article />-tag that will output the results in first place.
Cheers!
Last edited by Gocom (2007-11-22 18:34:30)
Offline
#4 2007-11-22 23:18:58
- shaza
- Member
- Registered: 2006-10-31
- Posts: 20
Re: Search Not Working?
Ohhh its the <txp:article /> tag that was the trouble, though I removed the extra <txp:permlink> as well. Thanks guys, it works now. I cant believe I forgot that _
As for glx_if. I use it because I use it for the glx_if_frontpage. And since the glx_search is built in I just use it instead of if_search
Last edited by shaza (2007-11-22 23:19:19)
Offline
Offline
Pages: 1