[pmwiki-users] PTV in Page List Template

Simon nzskiwi at gmail.com
Sat May 24 03:24:39 PDT 2025


Yes I had a similar request recently, wanting to use a
https://www.pmwiki.org/wiki/PmWiki/MarkupExpressions in a pagelist template
directive, e.g.
(:template first {(substr {=$Name} 0 4)}:)

On Wed, 21 May 2025 at 08:04, Martin Cuno <martin.cuno at posteo.de> wrote:

> Hello bright minds!
>
> A question about page list templates: You can use them to query PTVs from
> the target pages, using something like this syntax:
>
> [[#slv02]]
> *{=$FullName}: {=$:Bu70-01Pos}
> [[#slv02end]]
>
> I'm now looking for a way to add part of the PTV name (in the example:
> 70-01) as a variable to the page list template. This "70-01" is the
> $BaseName of the current page. But if I write:
>
> [[#slv02]]
> *{=$FullName}: {=$:Bu{$BaseName}Pos}
> [[#slv02end]]
>
> then this is rendered in the view as "{=$:Bu70-01Pos}", but it doesn't
> give me the value of this PTV. Although I can even sort the page list by
> these values!
>
> Is it hopeless because the processing order makes it impossible, or is
> there a trick?
>
> The background is, of course, more complicated: I want to outsource the
> page list template (for many such pages) to a central location.
>
> Anyone have any ideas?
>
> Martin, Siegen, Germany
>
>
> --
> Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.
> www.avast.com
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20250524/a4b75931/attachment.html>


More information about the pmwiki-users mailing list