Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux servername.com 2.4.21-27.0.4.EL #1 Sat Apr 16 18:43:06 EDT 2005 i686 athlon i386 GNU/Linux
Web server: Apache/2.0.46 (Red Hat)
Perl version: 5.8.0
Client OS: Win 98
Web Browser: IE or Opera 7
Categories: Search, Browser Issue

-- 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 smile

 
Topic revision: r5 - 2005-05-22 - AndyPryke
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.