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.
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 template, 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/CafeSoya?skin=refby
and the formatted (problematic) one at:
http://www.andypryke.com/pub/CafeSoya?skin=refbyformatted
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