Changeset 8310
- Timestamp:
- 07/26/10 07:22:31 (3 years ago)
- Location:
- trunk/core
- Files:
-
- 3 edited
-
data/System/VarADDTOZONE.txt (modified) (1 diff)
-
data/System/VarRENDERZONE.txt (modified) (1 diff)
-
lib/Foswiki.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/data/System/VarADDTOZONE.txt
r8300 r8310 46 46 47 47 ---++++ Working with ={OptimizePageLayout}= disabled (default) 48 * Be aware that in this mode, =body= is an alias for =head= - no =body= zone is ever populated. 48 * Be aware that in this mode, =body= and =head= are separate zones 49 when adding to them, but merged as one when you call 50 [[VarRENDERZONE][RENDERZONE]]. This allows an ADDTOZONE to the 51 =head= to successfully require an =id= that has been added to the 52 =body=. 53 * %ICON{"info"}% =%<nop>RENDERZONE{"head"}%= will expand *both* 54 =head= and =body= zone content. =%<nop>RENDERZONE{"body"}%= will 55 be empty. 49 56 * Only add HTML to the body zone _that is also legal in the =<HEAD>=._ 50 57 -
trunk/core/data/System/VarRENDERZONE.txt
r8299 r8310 10 10 11 11 Parameters: 12 * ="zone"= required, name of the zone 12 * ="zone"= required, name of the zone. 13 * %ICON{"info"}% If ={OptimizePageLayout}= is *not* enabled in 14 [[%SCRIPTURL{"configure"}%/configure][configure]] (the default), 15 =%<nop>RENDERZONE{"head"}%= will expand both =head= and =body= 16 zone content. =%<nop>RENDERZONE{"body"}%= will be empty. 13 17 * =header="..."= optional, prefix format string 14 18 * =format="..."= optional, format string for each item added to the zone, default: -
trunk/core/lib/Foswiki.pm
r8309 r8310 3340 3340 # zones as merged for compatibility with ADDTOHEAD usage where requirements 3341 3341 # have been moved to the body zone. See ZoneTests/Item9317 3342 if ( not $Foswiki::cfg{OptimizePageLayout} and $zone eq 'head' ) { 3342 if ( not $Foswiki::cfg{OptimizePageLayout} 3343 and ( $zone eq 'head' or $zone eq 'body' ) ) 3344 { 3343 3345 @zoneIDs = ( @zoneIDs, values %{ $this->{_zones}{body} } ); 3344 3346 foreach my $zoneID (@zoneIDs) {
Note: See TracChangeset
for help on using the changeset viewer.
