Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-28 00:14:16

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

Solved: search_result_excerpt dissappeared

Really strange… May be i switched some options off, or something like this? The example of query respons is here
I turned logging on, so in raw html you can see tag-trace.

For you’s conveniences i’ve cut it to pastebin (there are some cyrillic escaped symbols…)

And here is search_form:

<div class="article">
	<h2><txp:permlink><txp:title /></txp:permlink></h2>
	<p><txp:search_result_excerpt /></p>
	<p class="small"><txp:permlink><txp:permlink /></txp:permlink> · <txp:posted /></p>
</div>

And it produces the next html:

<h2><a rel="bookmark" href="http://uromax.ru/clinics/meditsinskii-tsentr-sovremennoi-ginekologii-i-urologii-evromedprestizh">Медицинский Центр современной Гинекологии и Урологии Евромедпрестиж</a></h2>
!!!	<p></p>
	<p class="small"><a rel="bookmark" href="http://uromax.ru/clinics/meditsinskii-tsentr-sovremennoi-ginekologii-i-urologii-evromedprestizh">http://uromax.ru/clinics/meditsinskii-tsentr-sovremennoi-ginekologii-i-urologii-evromedprestizh</a> · 56 дн. назад</p>
</div>

Last edited by the_ghost (2008-01-29 17:22:06)


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

#2 2008-01-28 01:32:34

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Solved: search_result_excerpt dissappeared

Hi there,

Looking at the tagtrace over at pastebin, I’ve been noticing one thing:

The test against the presence of a category returns false on line 67 of the code. So everything, that’s enclosed in that conditional, should return false for that specific tag-trace, right. ?

Did you notice. Am I wrong there ?

Now , the weird thing, is that some of the stuff still shows up. However, that could be explainable maybe through the presence of some plugins that you have there, but that shouldn’t happen either.

regards, marios

Last edited by marios (2008-01-28 01:37:26)


⌃ ⇧ < ⌃ ⇧ >

Offline

#3 2008-01-28 09:04:14

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

Re: Solved: search_result_excerpt dissappeared

I don’t know how could plugin effect making search_excerpt :(
About if_category – here is part of my page template:

<txp:if_category>
	<txp:chh_if_data>
		<txp:rss_uc_article_list section="*" limit="10" sortby="Title" sortdir="asc" />
	<txp:else />
		<txp:nfe_if_category parent="metro">
			<p>There are no clinics nere metro station you 've chosen</p>
		</txp:nfe_if_category>
		<txp:nfe_if_category parent="slovar">
	   		<p>There are know articles an selected letter .</p>
		</txp:nfe_if_category>
	</txp:chh_if_data>
<txp:else />
	<txp:glx_if_frontpage>
		<txp:article limit="10" keywords="news" />
	</txp:glx_if_frontpage>
	<txp:glx_if_not_frontpage>
		<txp:article limit="10" sort="Title"/>
	</txp:glx_if_not_frontpage>
	<txp:if_search>
		<txp:article pgonly="y" />
		<h3>Articles found: <b><txp:search_result_count text=" "/></b></h3>
		<txp:article limit="10" />
	<txp:rss_if_no_search_results>
		<p>Query returned zero results</p>
	</txp:rss_if_no_search_results>
	</txp:if_search>
</txp:if_category>

Last edited by the_ghost (2008-01-28 09:04:36)


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 2008-01-28 15:38:19

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Solved: search_result_excerpt dissappeared

Related to your other problem? Did you check the db tables, especially the textpattern table?

Offline

#5 2008-01-28 18:01:41

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Solved: search_result_excerpt dissappeared

@victor, I think on the article tag, that calls your search result, you must call the form with the searchform attribute. ( This is the attribute that replaces the form attribute for search results )

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#6 2008-01-28 21:50:45

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

Re: Solved: search_result_excerpt dissappeared

2 marios – if not entered, txp:article uses searchform=“search_results” by default. And you can see tag-trace – it uses it indeed. But by some mistic excerpt dissappeared :)


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

#7 2008-01-29 07:21:12

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Solved: search_result_excerpt dissappeared

So, it definitely used to work, it just suddenly stopped? What have you changed recently? What did you modify in taghandlers.php?

Offline

#8 2008-01-29 08:12:20

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

Re: Solved: search_result_excerpt dissappeared

2 Mary – you’re right – problem was in modified taghandlers.php… Now it works, thanks! My buggy version of taghadlers.php is here – just if you will be curious :)

Last edited by the_ghost (2008-01-29 10:15:16)


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

Board footer

Powered by FluxBB