Tags:
create new tag
view all tags

Question

I'm pretty sure I saw at one time long ago a configuration setting that would allow the TWiki administrator to create a list of CamelCase words that are NOT to be interpreted as WikiWords, for all webs on a given TWiki server.

Now that I need that functionality, I can't find where that configuration is done. Maybe I'm just googling for the wrong search terms, but I tried like the dickens and can't find anything relevant.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins:  
Server OS: GNU Linux
Web server: Apache2
Perl version:  
Client OS:  
Web Browser:  
Categories: Installation

-- ToddBradley - 03 May 2005

Answer

Currently you can only turn off autolinking for a block of text with <noautolink&gt tags, or for the whole site or whole web with a NOAUTOLINK = on setting.

You could create a NoAutolinkPlugin that escapes WikiWords defined in an exclude list in the preferences. How:

  • In initPlugin read a preferences setting that can be on site level and/or web level, e.g.
    • Set NOAUTOLINKWORDS = RedHat, McIntosh
  • Build a regular expression from this, e.g. $excludeRegex containing (^|[\(\s])(RedHat|McIntosh)
  • In the startRenderingHandler escape the WikiWords using the regex:
    $_[0] =~ s/$excludeRegex/$1<nop>$2/g;

This is not tested but should give you enough ideas on how to proceed.

-- PeterThoeny - 04 May 2005

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2005-05-04 - 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.