Question
My company's name is GenArts, which gets turned into a wiki word everywhere we use it, so all my users have to learn to type ! first or else I'd need to create a junk
GenArts topic in each web to prevent the ugly question mark.
Is it possible to have a plugin that just notices certain words and makes sure they don't get turned into links?
Environment
--
GaryOberbrunner - 11 Nov 2004
Answer
You could quite easily modify the
DefaultPlugin so that it prevents this word being recognised as a
WikiWord. In the
outsidePREHandler function, you could put something like this:
$_[0] =~ s/GenArts/<nop>GenArts/go;
I haven't tested this, but it's worth a try. If you upgrade TWiki, be sure to copy DefaultPlugin.pm somewhere first to avoid losing your modifications.
You can see this plugin at
SVNget:lib/TWiki/Plugins/DefaultPlugin.pm
.
--
RichardDonkin - 15 Nov 2004
Isn't this exactly what the
* Set NOAUTOLINK = ThisWord setting in
TWikiPreferences is good for? To prevent
ThisWord from being hyperlinked everytime it appears?
--
TorbenGB - 19 Nov 2004
No, the NOAUTOLINK is a flag to turn
WikiWord autolinking on/off. Turn it on of you only want the explicit
[[link][label]] links.
--
PeterThoeny - 20 Nov 2004
TWiki has now a
StopWikiWordLinkPlugin where you can prevent links for a set of WikiWords.
--
PeterThoeny - 09 Aug 2006
OK I have the opposite scenario - I have a product called ABCow which isn't a recognized
WikiWord, but I would like it to be... is there a way to specify words that
should be detected as
WikiWords?
Update: OK I found another question that addresses this - see
StopWikiWordLinkPluginDev for details.
--
MichaelBray - 01 May 2008