Hello all,
i've been playing with twiki on our intranet for two weeks now, and it is really awesome. I've never seen a "Intranet for techies" so active !
So here's my feature of the day.
I was looking at providing the same feature as the "Ref-By" link in a template, mainly to ease navigation by providing a link to the "parent" topic or at list provide a list of those referring the current one ...
i included the following code in the web template :
<HR>
There are discussions about <b>%TOPIC%</b> in the following topics
<br>
%SEARCH{"%SPACEDTOPIC%" scope="text" web="%WEB%" order="topic" nosummary="on" nosearch="on" regex="on" nototal="on"}%
<HR>
and came across the %SPACEDTOPIC% variable generating an annoying %20 into the regex used in the search.
So i created a new %SPACETOPICNOURL% variable, by patching lib/TWiki.pm, allowing to include a cross reference table at the end of each topic with the following code :
<HR>
There are discussions about <b>%TOPIC%</b> in the following topics
<br>
%SEARCH{"%SPACEDTOPICNOURL%" scope="text" web="%WEB%" order="topic" nosummary="on" nosearch="on" regex="on" nototal="on"}%
<HR>
If you have a better solution (i'm looking for more performance !) i'm eagerly waiting for you input
attached is a unified diff generated with
cvs diff -c.
--
ErwanArzur - 04 May 2001
twiki.patch (Patch to add the %SPACEDTOPICNOURL% variable)