[Pmwiki-users] automatically include pgcust.php
Patrick R. Michaud
pmichaud at sci.tamucc.edu
Mon May 5 16:03:20 CDT 2003
Actually, what I'm proposing shouldn't cause you a problem. If you're
already including pgcust.php in your local.php, then it won't be
called a second time in stdconfig.php (because stdconfig.php uses
include_once(...) and not include()).
And, of course, you could always just set $EnablePerGroupCust=0
in your local.php and stdconfig.php won't attempt to load it at all.
Pm
On Tue, May 06, 2003 at 08:49:00AM +1200, John Rankin wrote:
> Um... I think this may cause me problems, although I can see why it's generally a good idea.
>
> In my local.php scripts, in order, I:
> - set the $PageTitlePattern and $PageNamePattern
> - set local Defaults
> - run pgcust which makes exceptions to the defaults
> - set $PageHeaderFmt and $PageFooterFmt using the group-specific settings
>
> The main things the Group.php scripts do are set the group's home page name if different from $DefaultTitle, set the group's background colour and define the image rule to use in headers and footers.
>
> PageFooterFmt does slightly different things for the site's 'home' group and for other groups and uses the $DefaultTitle of the current group and a home title for the 'home' group.
>
> I am happy to change these to conform to the preferred customisation style. I think it can be made to work if pgcust is automatically loaded. I will move pgcust to the end of local.php and see what happens...
> --
> John Rankin
>
> On Monday, 5 May 2003 4:16 AM, Patrick R. Michaud <pmichaud at sci.tamucc.edu> wrote:
> All-
>
> Would anyone object if I change the distribution so that
> per-page and per-group customizations (e.g, local/Group.php)
> are enabled by default unless explicitly disabled?
>
> In particular, I'm thinking of changing scripts/stdconfig.php
> so that scripts/pgcust.php is automatically included unless
> $EnablePerGroupCust is set to zero in local.php.
>
> I think this will make the documentation easier, as well as
> better promote a standard customization scheme for PmWiki
> installations.
>
> Any comments in favor of or against this idea are greatly
> appreciated.
>
> Pm
>
> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
>
>
>
More information about the pmwiki-users
mailing list