Page list templates

Simon <[email protected]> Tue, 18 Mar 2025 21:08:17 +1300
Newsgroups gmane.comp.web.wiki.pmwiki.user
Message-ID <CAFUSNWNsQoZUgr1xQPXFzfprpCUsexmYhCAYxXGWANMpcVw_pg@mail.gmail.com>
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

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users