[pmwiki-users] Disabling WikiWords
Bronwyn Boltwood
arndis at gmail.com
Mon Jan 24 12:53:04 CST 2005
On Mon, 24 Jan 2005 10:30:01 -0800, Wade Hudson <whudson at igc.org> wrote:
> With our site, http://progressiveresourcecatalog.org, I'm considering
> disabling WikiWords, which I gather is an option.
>
> 1) How can I do so?
In the same directory as pmwiki.php, you should find a file called
sample-config.php. It contains many common customizations. Read
through it, copy the ones you want to your local/config.php. Then
uncomment the appropriate lines by removing the #s at the start of
them. Documentation comments in that file have ## at the start of
each line (don't uncomment them), while the chunks of code start with
just one #.
I think you'll be interested in the following chunks:
## Set $SpaceWikiWords if you want WikiWords to automatically
## have spaces before each sequence of capital letters.
# $SpaceWikiWords = 1; # turn on WikiWord spacing
## Set $LinkWikiWords to zero if you don't want WikiWord links (i.e.,
## all links are made using [[...]].
# $LinkWikiWords = 0; # disable WikiWord links
## If you want only the first occurrence of a WikiWord to be converted
## to a link, set $WikiWordCountMax=1.
# $WikiWordCountMax = 1; # converts only first WikiWord
# $WikiWordCountMax = 0; # another way to disable WikiWords
## The $WikiWordCount array can be used to control the number of times
## a WikiWord is converted to a link. This is useful for disabling
## or limiting specific WikiWords.
# $WikiWordCount['PhD'] = 0; # disables 'PhD'
# $WikiWordCount['PmWiki'] = 1; # convert only first 'PmWiki'
Bronwyn
More information about the pmwiki-users
mailing list