On 3/28/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 Tue, Mar 28, 2006 at 04:36:23PM -0600, Tegan Dowling wrote:<br>> On 3/17/06, Patrick R. Michaud <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>> wrote:<br>><br>> 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<br>> pagename<br>> > > is "GroupConfiguration" ?
<br>><br>> $EditTemplatesFmt = 'Site.{$Name}Template';<br>><br>> Yes, just one line!<br>><br>> This is dynamite. Then is this doable now, or would any wizard care to<br>> concoct the code for:
<br>><br>> $EditTemplatesFmt = 'Site.*{$Name}Template';<br>> So that I can create Site/FooTemplate, and then when, in any wikigroup,<br>> someone creates pages AFoo, BFoo, and CFoo, the *Foo template is applied
<br>> to all three?<br><br>$pagename = ResolvePageName($pagename);<br>if (preg_match('/Foo$/', $pagename)) $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? Unlike *{$Name}Template,
which allows me to identify template pages by creating them within the
wiki?<br>
<br>
Thanks!<br>
</div><br></div><br>