[pmwiki-users] pmwiki-2.2.0-beta3 released (new pagelist code)

Patrick R. Michaud pmichaud at pobox.com
Wed Sep 27 14:02:38 CDT 2006


On Tue, Sep 26, 2006 at 02:56:28PM -0700, Martin Fick wrote:
> > > Excellent!  Would this now support?:
> > > 
> > >   (:pagelist trail=Main.* group=XYZ:)
> > 
> > Not yet.  I'm not exactly sure what that means --
> > you want a list of all of the pages in group XYZ that 
> > appear on any trail in the Main group?
>  
> Yes, that's exactly what I meant! :)
> 
> > Somehow reading a trail from every page in Main
> > doesn't seem like it'd be all that fast...  :-|
> 
> No, I don't suppose it would be fast, but it would
> make it easier for the pagelistextensions recipe able
> to handle the parallel:
> 
>   (:pagelist targets=Main.* group=Category:)
> 
> which would find all the Categories used in the Main
> group.  

Oh, I expect some equivalent of targets= to be in
the core (:pagelist:) command, I just haven't convinced
myself that "targets=" is the correct name for it.
I'm afraid that many will misread

    (:pagelist targets=Main.XYZ :)

as meaning "list all of the pages with links to Main.XYZ",
when it's actually "list all of the pages that Main.XYZ
targets".

Still, I haven't come up with a better name for it,
so I might start with targets= and change it later if
we come up with a better name.

In the case of (:pagelist targets=Main.*:), should
pagelist make sure that each page is listed only once?
In other words, if both Main.ABC and Main.DEF have
links to Main.WikiSandbox, should Main.WikiSandbox
appear once or twice in the resulting list?

I'm guessing "once", but with trails it's possible for
a single page to appear multiple times in the same list.
So, maybe what we need is to default to a unique list
of pagenames, but provide an option that says "it's okay
for a page to appear more than once in the list".

Pm




More information about the pmwiki-users mailing list