[pmwiki-users] Re: PageListTemplates variable naming... Was: PageListTemplates recipe extended

Daniel Scheibler scheibi at gmail.com
Fri Oct 28 02:43:05 CDT 2005


2005/10/27, Martin Fick <fick at fgm.com>:
> > >   I'm not sure I like the 'Page' prefix, but 'Cur' just
> > > seems lame.  Any other suggestions?  Is there any reason to
> > > keep the stict namespace separation with the 'PageList'
> > > prefix, or is it simply overkill?
> >
> > I think, the variable names should point unique towards the cookbook.
> > My preferred solution would be $PageList.Curr.xyz, $PageList.Prev.xyz
> > $PageList.Next.xyz or maybe $PL.Curr.xyz, $PL.Pref.xyz, $PL.Next.xyz.
>
>
> Hmm,
>
> $PageList.Curr.xy
>
> does not seem like much of a simplification.
>
>
>
> $PL.Curr.xyz
>
> is certainly shorter.  It is something I would use. :)
> But I would be concerned that it is not obvious to authors
> who are not aware of the recipe.

Hmm ... I could live with $PL ...

>   One reason I was just thinking of eliminating the
> '$Pagelist' prefix is that I can imagine other recipes using
> the same notations for page data.  For example I have a
> script which takes a trail and includes all the pages listed
> in the trail on one page, this could be reimplemented using
> the same notation as PageListTemplate allowing easier
> customization of the layout.  In this case the prefix would
> actually not just be a hinderance, but actually misleading
> and would prevent recepies from sharing layout templates.

good argument

>   Can anyone picture more recipes that need similar
> functionaliy? If people use it for their search results,
> should the vars now be prefixed with 'SearchResults'?  Are
> there other core pieces of pmwiki that could be enhanced to
> work similarly?

Lets look for other applications ...

Greets,

Daniel
--
Daniel Scheibler     ========:}       student at
eMail: scheibi at gmail.com              BTU Cottbus/Germany
WWW:   http://www.scheiby.de




More information about the pmwiki-users mailing list