[Pmwiki-users] Disabling WikiWords problem with Main group.
Patrick R. Michaud
pmichaud
Wed Sep 10 10:29:44 CDT 2003
Woops, my code should've read (forgot the "Pattern" in "WikiWordPattern"):
$group = FmtPageName('$Group',$pagename);
if ($group!='Main' && $group!='PmWiki') $WikiWordPattern = "\001\001";
Sorry about that.
Pm
On Wed, Sep 10, 2003 at 08:33:54AM -0600, Patrick R. Michaud wrote:
> By default, when PmWiki is looking for local customization files, it
> looks first for a per-page file (e.g., local/Group.SomePage.php),
> if that doesn't exist it looks for a per-group file (local/Group.php),
> and if that doesn't exist it looks for a customization file for the
> default group--usually "Main.php". The idea is that the default group
> file can contain customizations for all of those groups that don't have
> per-group customization files. (See PmWiki.PerGroupCustomizations.)
>
> There are several ways to work around this, but the easiest is probably
> to just do the following in local.php:
>
> $group = FmtPageName('$Group',$pagename);
> if ($group!='Main' && $group!='PmWiki') $WikiWord = "\001\001";
>
> which says to disable WikiWords in all groups except Main and PmWiki.
>
> Pm
>
>
> On Wed, Sep 10, 2003 at 04:33:45PM +1000, Elindal wrote:
> >
> > I have followed the instructions to disable WikiWords
> >
> > [1]http://www.pmichaud.com/wiki/Cookbook/DisableWikiWords
> >
> >
> >
> > I knew this would break a few things in the Main group and in the
> > PmWiki group, so after adding
> >
> > $WikiWordPattern = "\001\001";
> >
> > to local.php, I added
> >
> >
> > $WikiWordPattern="[A-Z][A-Za-z0-9]*(?:[A-Z][a-z0-9]|[a-z0-9][A-Z])[A-Z
> > a-z0-9]*";
> >
> > to Main.php and PmWiki.php
> >
> >
> >
> > I expected this to disable WikiWords in all groups except Main and
> > PmWiki. This is not what happened, WikiWords were still fully enabled.
> >
> >
> >
> > After trying a few things, I found out that while WikiWords were
> > turned on in Main.php, they were active in every group on the site.
> > This seems odd to me as I would have expected that any changes in
> > Main.php would only have affected that group.
> >
> >
> >
> > I have removed Main.php and have manually updated all of the stuff in
> > Main to use FreeLinks, but I am still concerned that Main.php overrode
> > local.php for all groups.
> >
> >
> >
> > Has anyone else seen this?
> >
> >
> >
> > Richard Canning
> >
> > References
> >
> > 1. http://www.pmichaud.com/wiki/Cookbook/DisableWikiWords
>
> > _______________________________________________
> > Pmwiki-users mailing list
> > Pmwiki-users at pmichaud.com
> > http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
>
>
> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
More information about the pmwiki-users
mailing list