[pmwiki-users] Templates question
Ian MacGregor
lists at imacgregor.com
Mon Jul 23 20:38:29 CDT 2007
On Monday 23 July 2007 5:30:56 pm H. Fox wrote:
> 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';
Thank you, I was wondering about this.
Regards,
Ian MacGregor
> }
>
> Hagan
--
http://www.imacgregor.com
MacGregor Despite Them!
More information about the pmwiki-users
mailing list