[pmwiki-users] Templates question
H. Fox
haganfox at users.sourceforge.net
Mon Jul 23 19:30:56 CDT 2007
On 7/22/07, Ian MacGregor <lists at imacgregor.com> 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
More information about the pmwiki-users
mailing list