Tags:
create new tag
, view all tags
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)

TopicClassification:
FeatureBrainstorming
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatpatch twiki.patch   manage 1.0 K 2001-05-04 - 18:02 ErwanArzur 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
 
  • Learn about TWiki  
  • Download TWiki
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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.