Tags:
create new tag
view all tags

Question

The questions is, how to make a WikiWord in current topic be linked only once? (automatically) 

The logic would be like:

If

“any WikiWord in current topic presents more than once”

Then

“keep only the 1st occurrence of that WikiWord be linked in current topic”

I understand I can use "<noautolink>" tag, but if the WikiWord is mentioned many times in one topic, the manual coding will need much effort...

Environment

TWiki version: TWikiRelease04x01x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Performance

-- CoriaXu - 19 May 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

This could be done with a plugin:

  • At rendering time, build up a hash of all WikiWords on a page
  • Escape the WikiWord if the word already exists in the hash

-- PeterThoeny - 23 Jul 2008

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2008-07-23 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.