[Pmwiki-users] Re: Re: AsSpaced function (was pmwiki-2.0.devel9 released)

chr@home.se chr
Sun Oct 3 18:52:50 CDT 2004


On Sat, 2 Oct 2004, Patrick R. Michaud wrote:

> > What about inverting the defaults? Instead of trying to exclude certain
> > words from being interpreted as WikiWords, maybe we should come up with an
> > easy way to let administrators and/or users specify what words or patterns
> > that should be interpreted as WikiWords/links?
> 
> There is already an "easy" way to do this -- it's called 
> $WikiWordPattern.  :-)  

But can that be an array? Can you define several patterns that are used to 
look for a WikiWord?

> > Another alternative might be to only interpret WikiWord as a link if the
> > corresponding page 'WikiWord' already exists? (Instead of turning it into 
> > a 'create page link').
> 
> This can be done also--even in v1.  One can disable create page links
> globally by changing $WikiPageCreateFmt ($LinkPageCreateFmt in v2), or
> one can change the translation of bare WikiWords to check for page
> existence first before converting.

What if I only wanted to do it for words which match a certain pattern?
The pattern would in this case typically be '[:upper:]+s'.

Anwyway, since I ended up disabling wiki words globally, I've "solved" the 
problem in my case. So the thoughts above are more meant as geneal 
comments and/or ideas for how to handle this.

> Another solution is to simply disable the link decorations on links to
> non-existent pages, so that the WikiWord to a non-existent page looks 
> like normal text but the link is still available if someone wants to 
> create the target page.

It's not a bad idea, although it'd still be a matter of only doing this 
for certain wiki words (e.g. CCDs).

/Christian

-- 
Christian Ridderstr?m, +46-8-768 39 44               http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list