On 3/28/06, <b class="gmail_sendername">Patrick R. Michaud</b> &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt; 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 Tue, Mar 28, 2006 at 04:36:23PM -0600, Tegan Dowling wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;On 3/17/06, Patrick R. Michaud &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;On Fri, Mar 17, 2006 at 12:53:48PM -0600, Patrick R. Michaud wrote:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; On Fri, Mar 17, 2006 at 07:38:28PM +0100, noskule wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; &gt; hi list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; &gt; How do I setup a rule that a pagetemplate&nbsp;&nbsp;will be used if the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagename<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; &gt; is &quot;GroupConfiguration&quot; ?
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$EditTemplatesFmt = 'Site.{$Name}Template';<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yes, just one line!<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;This is dynamite.&nbsp;&nbsp;Then is this doable now, or would any wizard care to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;concoct the code for:
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;$EditTemplatesFmt = 'Site.*{$Name}Template';<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;So that I can create Site/FooTemplate, and then when, in any wikigroup,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;someone creates pages AFoo, BFoo, and CFoo, the *Foo template is applied
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;to all three?<br><br>$pagename = ResolvePageName($pagename);<br>if (preg_match('/Foo$/', $pagename))&nbsp;&nbsp;$EditTemplatesFmt = 'Site.FooTemplate';</blockquote><div><br>
How to use this: It looks to me as if I'll need to declare what Foo is
in the config.php file, is that correct?&nbsp; Unlike *{$Name}Template,
which allows me to identify template pages by creating them within the
wiki?<br>
<br>
Thanks!<br>
</div><br></div><br>