Question
I'd like to include "ref-by" information on every page on one of my TWiki sites.This would appear as a side bar showing topics.
Formatted search seems to fail for me when included on a page (as well as in a template) as you can see here:
http://www.andypryke.com/pub/SearchTestOne
If I add the line (the "\" characters are to escape it so you can see it in the page)
\% SEARCH{regex="on" search="\%TOPIC\%" scope="text" nototal="on" nosearch="on" }\%
to the page, it works, but I'd like to use formatted search so it only shows the topic name.
When I add the "format=..." paramter to the search, like this
\%SEARCH{regex="on" search="\%TOPIC\%" scope="text" nototal="on" nosearch="on" format="$topic "}\%
the page isn't displayed correctly in either Opera or IE. In Opera, it appears as the html source, and in IE I get the line
: text/html; charset=ISO-8859-1 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/plain; charset=iso-8859-1 f5f
at the top of the page.
You can see an example of the unformatted search at
http://www.andypryke.com/pub/SearchTestTwo
and the formatted (problematic) one at:
http://www.andypryke.com/pub/SearchTestOne
Couldn't find this as a known problem. My guess is that the HTTP header is being munged somehow...
Any ideas?
Environment
--
AndyPryke - 15 May 2005
Answer
My template was missing the lines:
%TMPL:INCLUDE{"twiki"}%
%TMPL:P{"htmldoctype"}%
Adding these as the first two lines solved the problem