[pmwiki-users] clue me in -- remove group name from pagelist?

Patrick R. Michaud pmichaud at pobox.com
Thu May 25 09:57:01 CDT 2006


On Thu, May 25, 2006 at 10:32:39AM -0400, Curtis, Clayton wrote:
> On May 25, Pm wrote:
> > What if the fmt=#xyz parameter simply searched multiple template pages
> (as > defined by the administrator)?  
> > Then we could have "fmt=#xyz" first look for Site.LocalTemplates#xyz,
> and > if it's not located there it looks at Site.PagelistTemplates#xyz.
> 
> That would be great. Might it be possible to put
> <currentgroup>.PagelistTemplates or <currentgroup>.LocalTemplates (one
> or the other, I like the first) in the sequence? (Though, to be fair,
> I'm not sure how often group-specific formats would come into play -- it
> just seems consistent with the way similar things have been done
> elsewhere.)

PmWiki's default would probably be to simply look at 
{$SiteGroup}.LocalTemplates and {$SiteGroup}.PagelistTemplates .

However, an administrator could customize this to be whatever
list is desired:

    $FPLTemplatePageFmt = array(
      '{$Group}.PagelistTemplates',
      '{$SiteGroup}.LocalTemplates',
      '{$SiteGroup}.PagelistTemplates');

Pm




More information about the pmwiki-users mailing list