Looking for a recipe or configuration for page templates

Simon <[email protected]>
Newsgroups gmane.comp.web.wiki.pmwiki.user
Message-ID <CAFUSNWPeuWPP_ZC4sjcKGmxbEtj7H0o7AgCJfD96yuMwOLEA6g@mail.gmail.com>
Using PmWiki | Cookbook / EditTemplates
<https://www.pmwiki.org/wiki/Cookbook/EditTemplates> it is possible to
"pre-fill" a new page from a templates, e.g.
$EditTemplatesFmt
<https://www.pmwiki.org/wiki/PmWiki/EditVariables#EditTemplatesFmt> =
'{$SiteGroup}.{$Name}Template';
which looks in the Site group for a template matching the name of the page
being created. For example, the above would use "Site.HomePageTemplate" (if
it exists) anytime an author creates a page named "HomePage" (in any group).

I'm looking for something that moves this up a notch by marching the new
page name, e.g.
$EditTemplatesFmt['pattern'] = ['*some?text*', 'SomeTemplatePagename'];
i.e. to be able to specify a pattern (normal or regex) that when matched
against a "new" page name successfully specified the page to be used as the
template
for example
$EditTemplatesFmt['pattern'] = ['*maps', 'MapsTemplate'];

Or ideas on how to implement this?

thanks very much

Simon

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.