Given you created a
Config.spec
for your new extension of the following kind
# ---+ MyNewPlugin settings
# intro intro intro
# intro intro intro
#
# ---++ General Settings
# **STRING**
$TWiki::cfg{MyNewPlugin}{Host} = 'my.domain.com';
# **NUMBER**
$TWiki::cfg{MyNewPlugin}{Port} = 389;
...
Then only
# ---+ MyNewPlugin settings
# intro intro intro
# intro intro intro
will be shown and anything else below will be cropped.
This behaviour has been changed as of
Item3559 (2007-02-07, r12794) for reasons I don't understand.
The relevant code is at lib/TWiki/Configure/TWikiCfg.pm in the function
_parse()
elsif( $l =~ /^#\s*---\+(\+*) *(.*?)$/ ) {
# Only load the first section if we don't have LocalSite.cfg
last if ($sectionNum && !$haveLSC); # OUTCH
$sectionNum++;
pusht(\@settings, $open) if $open;
$open = new SectionMarker(length($1), $2);
}
Can anybody explain why this was added? This broke configuring
LdapContrib.
--
TWiki:Main/MichaelDaum
- 15 Mar 2007
It was added to support only loading the first section (general path settings) if there is no localsite.cfg. The theory is that new users get put off by too much info when initially configuring their TWiki.
Since there should be a localsite.cfg when configuring
LdapContrib, I think maybe you are encountering a different problem.
--
TWiki:Main.CrawfordCurrie
- 16 Mar 2007
There was a missing parameter
CC