<div dir="ltr">Yes I had a similar request recently, wanting to use a <a href="https://www.pmwiki.org/wiki/PmWiki/MarkupExpressions">https://www.pmwiki.org/wiki/PmWiki/MarkupExpressions</a> in a pagelist template directive, e.g.<div>(:template first {(substr {=$Name} 0 4)}:)</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, 21 May 2025 at 08:04, Martin Cuno <<a href="mailto:martin.cuno@posteo.de">martin.cuno@posteo.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello bright minds!<br>
<br>
A question about page list templates: You can use them to query PTVs from the target pages, using something like this syntax:<br>
<br>
[[#slv02]]<br>
*{=$FullName}: {=$:Bu70-01Pos}<br>
[[#slv02end]]<br>
<br>
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:<br>
<br>
[[#slv02]]<br>
*{=$FullName}: {=$:Bu{$BaseName}Pos}<br>
[[#slv02end]]<br>
<br>
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!<br>
<br>
Is it hopeless because the processing order makes it impossible, or is there a trick?<br>
<br>
The background is, of course, more complicated: I want to outsource the page list template (for many such pages) to a central location.<br>
<br>
Anyone have any ideas?<br>
<br>
Martin, Siegen, Germany<br>
<br>
<br>
-- <br>
Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.<br>
<a href="http://www.avast.com" rel="noreferrer" target="_blank">www.avast.com</a><br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div>