We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
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

 
Topic revision: r6 - 01 May 2008 - 18:03:36 - MichaelBray
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback