AddingCrossReferenceTable < Codev < TWiki

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 smile

attached is a unified diff generated with cvs diff -c.

-- ErwanArzur - 04 May 2001

twiki.patch (Patch to add the %SPACEDTOPICNOURL% variable)

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatpatch twiki.patch manage 1.0 K 2001年05月04日 - 18:02 UnknownUser Patch to add the %SPACEDTOPICNOURL% variable
Edit | Attach | (削除) Watch (削除ここまで) | Print version | History : r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2008年08月14日 - RafaelAlvarez
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

AltStyle によって変換されたページ (->オリジナル) /