[pmwiki-users] "Wanted Pages" Recipe?

Patrick R. Michaud pmichaud at pobox.com
Tue Feb 14 14:31:46 CST 2006


On Tue, Feb 14, 2006 at 03:16:16PM -0500, Kurt Devlin wrote:
> On 2/14/06, Neil Herber <nospam at eton.ca> wrote:
> 
> > Have a look at:
> >    http://www.pmwiki.org/wiki/PmWiki/RefCount
>
>    Thanks Neil. That's a good start. I was hoping to not fill out a form
>    before I got the information for something more closely following the
>    Wikipedia page. From a quick look at refcount.php, it wasn't obvious that
>    there was an easy way to write a cookbook recipe to pass in the group
>    ('all' or a single name) and the type ('all', 'missing', etc. ) without an
>    extensive refactoring of PrintRefCount(). I think if generating the form
>    was decoupled from the actual generation of the page it would be easier to
>    tackle. For the time being, filling in the form manually will have to do.
>    :-)

The current plan is for this to be handled using (:pagelist:),
although I haven't decided on the appropriate argument name.
At the moment I'm thinking it'll be "type", thus:

    (:pagelist type=missing|orphan|all|existing:)      

PmWiki's default is "type=existing".  "Missing" will list
the "wanted pages" -- i.e., pages for which there are links to
the page but the page doesn't exist yet.  "Orphan" will list
pages that exist but don't have any links to them except for
links from the RecentChanges pages.  "All" will include both
missing and existing pages in the output.

Of course, this can be combined with other options, thus

    (:pagelist type=missing group=PmWiki:)
        - show missing pages in the PmWiki group

    (:pagelist type=orphan group=-Main:)
        - show orphan pages except for the Main group

One way in which this is less capable than the current refcount.php
script is that it's not possible to get a list of "pages in group
A with links from groups A and B", but I don't know that this
sort of query gets used very often anyway.  

That's the current plan.  :-)

Pm




More information about the pmwiki-users mailing list