Changeset 8310


Ignore:
Timestamp:
07/26/10 07:22:31 (3 years ago)
Author:
PaulHarvey
Message:

Item9317: Fix RENDERZONE a bit, doc updates

Location:
trunk/core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/data/System/VarADDTOZONE.txt

    r8300 r8310  
    4646 
    4747---++++ 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. 
    4956   * Only add HTML to the body zone _that is also legal in the =&lt;HEAD&gt;=._ 
    5057 
  • trunk/core/data/System/VarRENDERZONE.txt

    r8299 r8310  
    1010 
    1111Parameters: 
    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.  
    1317   * =header="..."= optional, prefix format string 
    1418   * =format="..."= optional, format string for each item added to the zone, default: 
  • trunk/core/lib/Foswiki.pm

    r8309 r8310  
    33403340    # zones as merged for compatibility with ADDTOHEAD usage where requirements 
    33413341    # 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    { 
    33433345        @zoneIDs = ( @zoneIDs, values %{ $this->{_zones}{body} } ); 
    33443346        foreach my $zoneID (@zoneIDs) { 
Note: See TracChangeset for help on using the changeset viewer.