On 3/17/06, <b class="gmail_sendername">Patrick R. Michaud</b> <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, Mar 17, 2006 at 12:53:48PM -0600, Patrick R. Michaud wrote:<br>> On Fri, Mar 17, 2006 at 07:38:28PM +0100, noskule wrote:<br>> > hi list<br>> > How do I setup a rule that a pagetemplate will be used if the pagename
<br>> > is "GroupConfiguration" ?<br><br> $EditTemplatesFmt = 'Site.{$Name}Template';<br><br>Yes, just one line!<br><br>This will look in the Site group for a template page matching<br>the name of the current page. Thus
Site.GroupConfigurationTemplate<br>would be used for any page named "GroupConfiguration",<br>Site.HomePageTemplate would be used for any page named "HomePage", etc.<br>Of course, if there's no matching Site.*Template page, then
<br>no template is used.</blockquote><div><br>
This is dynamite. Then is this doable now, or would any wizard care to concoct the code for: <br>
<br>
<a class="varlink" href="http://universal21.emergencydigital.com/PmWiki/EditVariables#EditTemplatesFmt"><code class="varlink">$EditTemplatesFmt</code></a> = 'Site.*{$Name}Template';<br>
</div><br>
So that I can create Site/FooTemplate, and then when, in any wikigroup,
someone creates pages AFoo, BFoo, and CFoo, the *Foo template is
applied to all three?<br></div><br>