<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Using <a href="https://www.pmwiki.org/wiki/Cookbook/EditTemplates">PmWiki | Cookbook / EditTemplates</a> it is possible to "pre-fill" a new page from a templates, e.g.</div><div dir="ltr"><div class="gmail-indent" style="margin-left:40px;color:rgb(0,0,0);font-size:15px"><span class="gmail-hlt gmail-php"><code class="gmail-hlt gmail-php gmail-hljs gmail-language-php" style="font-size:0.93333em;background:rgb(243,243,243);color:rgb(68,68,68);padding:0px 2px"><span class="gmail-hljs-variable" style="color:rgb(171,86,86)"><a class="gmail-varlink" href="https://www.pmwiki.org/wiki/PmWiki/EditVariables#EditTemplatesFmt" style="text-decoration-line:none">$EditTemplatesFmt</a></span> = <span class="gmail-hljs-string" style="color:rgb(136,0,0)">'{$SiteGroup}.{$Name}Template'</span>;</code></span></div>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).</div><div dir="ltr"><br></div><div>I'm looking for something that moves this up a notch by marching the new page name, e.g.</div><div>$EditTemplatesFmt['pattern'] = ['*some?text*', 'SomeTemplatePagename'];</div><div>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</div><div>for example</div><div>$EditTemplatesFmt['pattern'] = ['*maps', 'MapsTemplate'];<br></div><div><br></div><div>Or ideas on how to implement this?</div><div><br></div><div>thanks very much</div><div><br></div><div>Simon</div></div></div></div>