Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Linux 8
Web server: Apache 2.0
Perl version: 5.8
Client OS: Win
Web Browser: Firefox 1.0
Categories: Missing functionality, Documentation, Plugins

-- 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

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2008-05-01 - MichaelBray
 
  • 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.