[pmwiki-users] pagelist for group default pages

Patrick R. Michaud pmichaud at pobox.com
Thu Nov 8 08:18:39 CST 2007


On Thu, Nov 08, 2007 at 01:38:52PM +0000, Hans wrote:
> Thursday, November 8, 2007, 1:25:24 PM, Patrick R. Michaud wrote:
> 
> > Do you just mean...?
> 
> >   [[#groupdefaults]]
> >   (:template first {=$Group}:)
> >   * [[{=$Group}/]]
> >   [[#groupdefaultsend]]
> 
> (:pagelist list=normal fmt=#groupdefaults:)
> 
> with the template you suggest gives an interesting output, but not
> remotely what I want.
> 
> I'd like the pagelist to display only page links where the Group part
> equals the Name part, which is a standard Group/ default name.

Oh.  How about...?

    (:pagelist if="equal {=$Group} {=$Name}":)
    
> It is easy to pick out only *.HomePage pages, but not xxx.xxx matches
> of group and name part. What does (:template first {=$Group}:) do?

It says to process only the first page encountered in each group.
Effectively it's an easy way to get a list of groups.

Pm



More information about the pmwiki-users mailing list