[pmwiki-users] Pagelist or Page Variable fail? bug or feature?

Petko Yotov 5ko at 5ko.fr
Tue Feb 7 02:35:36 CST 2012

On Tuesday 07 February 2012 01:44:39, Crisses wrote :
> the template is defined at Site/LocalTemplates, not on the GroupHeader
> page.

Oh sorry. Earlier you wrote that :

> >>> Then I put a template into GroupHeader, so it would be displayed on
> >>> every page

so  I assumed you put the template in the GroupHeader and not in 

By "template" I also assumed you ment "pagelist template", the snippet which 
is repeated for every page in the pagelist.

If your template [[#person]]...[[#personend]] is in GroupHeader, you need to 
use fmt=GroupHeader#person. If it is in Site.LocalTemplates, you should be 
able to use fmt=#person unless the browsed page contains a [[#person]] anchor 
-- in that case, use fmt=Site.LocalTemplates#person.

The fmt=#title should also work with the #title snippet from 
Site.LocalTemlates or from Site.PageListTemplates unless your browsed page 
contains an anchor [[#title]].

And no, $SearchPatterns doesn't restrict the source pages for template 

I enabled your $SearchPatterns setting for the group you created:

and the fmt=#title parameter seems to work fine.


> I want every page to display the same info with local PageTextVariables
> pulled in from the page, but I don't want GroupHeader to come up in search
> results.
> > Use fmt=GroupHeader#person rather than  fmt=#person .
> > 
> > Petko
> > 
> > On 2/6/2012, "Patrick R. Michaud" <pmichaud at pobox.com> wrote:
> >> On Mon, Feb 06, 2012 at 11:12:55AM -0500, Crisses wrote:
> >>> Then I put a template into GroupHeader, so it would be displayed on
> >>> every page.  Normal text and PTVs work fine in the GroupHeader, but
> >>> this failed: (:pagelist name={*$FullName} fmt=#person:)
> >>> 
> >>> To be sure, I also attempted the stock pagelist template:
> >>> (:pagelist name={*$FullName} fmt=#title:)
> >>> 
> >>> Both died silently.
> >>> 
> >>> However this worked:
> >>> (:pagelist name=Group/SpecificPage fmt=#person:)
> >> 
> >> Out of curiosity, does this work?
> >> 
> >>   (:pagelist name=Group.SpecificPage fmt=#person:)
> >> 
> >> I agree that what you're seeing is quite odd; at first glance it
> >> seems to me like it ought to be working as you expect.

More information about the pmwiki-users mailing list