[Pmwiki-users] finding orphaned pages
Patrick R. Michaud
pmichaud
Sun Jan 18 17:40:29 CST 2004
On Sun, Jan 18, 2004 at 05:14:08PM +0100, Christian Ridderstr?m wrote:
> On Sat, 17 Jan 2004, Christian Ridderstr?m wrote:
> >
> > This reminds me... 'refcount.php' could use an update so that it works
> > with the automatic links to groups (can't remember what cookbook this is
> > right now, but bascially, if you have a group called PmWiki and you write
> > PmWiki
> > this will automatically be interpreted as PmWiki/PmWiki (very nice btw)).
> Patrick, if it's safe, maybe you could modify scripts/refcount.php?
...except that refcount.php is in the core distribution, while the Cookbook
script is not, and I don't want parts of the distribution code to depend on
functionality that doesn't come with the distribution. (Also, I can't find
the cookbook script, so I think it was in the mailing list...yes, yes, I
know, we need a mailing list search function... :-).
I could put the "automatic links to groups" patch into core pmwiki.php,
but I'm not quite ready to do that just yet--I have a few alternate ideas
about achieving similar or better functionality than the patch provided.
(More on this below).
So, for the time being, rather than modifying the refcount.php that
comes with the distribution, another approach would be for someone to provide
an alternate refcount.php script along with the Cookbook script (or wherever
it is) that does automatic links to groups and can be placed in local/.
Or, instead of doing an alternate refcount.php script, just an updated
refcount.php function into the Cookbook script directly.
My idea for resolving to pages in other groups...:
Essentially I'm thinking about providing an admin-customizable array of
places to look to resolve wikiwords (and/or freelinks), thus one could
specify to look for a wikiword in the current group, in a group of the
same name as the wikiword, or in other groups". For example, an
admin could specify something like:
$WikiWordSearchFmt = array('$Group.$1','$1.$1','$1.HomePage','PmWiki.$1',
'Main.$1');
which would allow 'SomeWord' to match the 'SomeWord' page in the current
group, 'SomeWord.SomeWord', 'SomeWord.HomePage', 'PmWiki.SomeWord',
or 'Main.SomeWord', whichever is found first.
Pm
More information about the pmwiki-users
mailing list