Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Spider search result error

Quote Reply
Spider search result error
hello

When I seek a word which does not exist in the my links database the links displays an external links. But when I seek words who exist in the database the spider displays the words scanned for with this error message:

Unknown Tag: 'spider_results' - Unknown Tag: 'spider_hits'
Your search for xxx returned xxx categories and xxx Links.


ThanX

Bachir

Algeria guide
http://www.wilyates.com

Quote Reply
Re: Spider search result error In reply to
Hi Bachir,

I should of warned. The spider plugin is only called when there are no results. Thus, the template variables, spider_results and spider_hits are only set when that occurs. To ensure that the error doesn't occur try the following:

<%if spider_results%>
<%spider_results%>
<%spider_hits%>
<%endif%>

That code will test to see if the variables have been set and if so include them into the page.

Hope this helps,
Aki