On 7/22/07, Ian MacGregor <[EMAIL PROTECTED]> wrote:
> I am using the following in config.php:
[...]
> ## This setting causes PmWiki to use "Site.HomePageTemplate"
> ## anytime an author creates a page named "HomePage".
> $EditTemplatesFmt = '{$SiteGroup}.{$Name}Template';
[...]
> I tried:
>
> $EditTemplatesFmt = 'Cooking.RecipeTemplate';
>
> But that overrides the above setting for the HomePage. Once I learn how to do
> this, I can use that info to make other templates.
>
> Any idea how to do this?

Try

   if (! preg_match('/\\.HomePage)$/', $pagename) {
     $EditTemplatesFmt = 'Cooking.RecipeTemplate';
   }

Hagan

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to