[pmwiki-users] Page list templates

Simon nzskiwi at gmail.com
Tue Mar 18 01:08:17 PDT 2025


Page list templates <https://www.pmwiki.org/wiki/PmWiki/PageListTemplates>
are a powerful and useful mechanism in PmWiki.

I've got a use case where I have many page names prefixed by date - i.e.
"yyyy-mm-dd etc"

I would like to group then into years, e.g. by something like this

(:template first {(substr {=$Name} 0 4)}:)

any suggestions on how I can achieve this.
As you may surmise the above does not work

thanks

Simon

PS note interestingly I can do this
(:template defaults year='{(substr {=$Name} 0 4)}':)
and use {$$year} successfully in the page list template
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20250318/389e39b0/attachment.html>


More information about the pmwiki-users mailing list