[pmwiki-users] Home Pages in (:pagelist:)s

Patrick R. Michaud pmichaud at pobox.com
Fri Dec 16 13:39:50 CST 2005


On Fri, Dec 16, 2005 at 02:34:31PM -0500, Martin Fick wrote:
> On Fri, Dec 16, 2005 at 02:14:18PM -0500, Waylan Limberg wrote:
> > On 12/16/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > >
> > > Also, it's possible (although perhaps not advisable) for us to put
> > > several templates on a single page and refer to them by anchor,
> > > should we have separate pages for each template or place common
> > > ones on a single page?  One advantage of embedding templates
> > > in a page with anchors is that we can have the description of the
> > > pagelist format associated with the template itself.  The
> > > pagelist command to load them is then:
> 
>   Wow, I always thought it was a little annoying to have
> many little page templates, never occured to me to put them
> on the same page!

Really?  I thought you had planned it that way in your code, since it
already does most of what is needed... :-)  Try:

    (:pagelist fmt=template page=SomeTemplate#simple:)

and then in SomeTemplate do:

    [[#simple]]
    * {{$Curr}$Name}
    [[#simpleend]]

>   I love it!  Now you've made :
>      (:pagelist template=#ByGroup :)
>   almost as simple as:
>      (:pagelist fmt=ByGroup :)

See my next message, I did make it as simple.  :-)  :-)

Pm




More information about the pmwiki-users mailing list