Ignore:
Timestamp:
04/19/12 20:58:20 (13 months ago)
Author:
GeorgeClark
Message:

Item11746: Use macros, not explicit web reference

%SYSTEMWEB%, %SANDBOXWEB% and %USERSWEB% are needed so that webs can be
renamed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release01x01/core/data/System/SkinTemplates.txt

    r14104 r14643  
    150150   2 =templates/$name.$skin.tmpl= 
    151151   3 =$web.$skinSkin$nameTemplate= 
    152    4 =System.$skinSkin$nameTemplate= 
     152   4 =%SYSTEMWEB%.$skinSkin$nameTemplate= 
    153153   5 =templates/$web/$name.tmpl= 
    154154   6 =templates/$name.tmpl= 
    155155   7 =$web.$nameTemplate= 
    156    8 =System.$nameTemplate= 
     156   8 =%SYSTEMWEB%.$nameTemplate= 
    157157For example, let's say we are viewing a topic in web =%SANDBOXWEB%= and are searching for the template called =function=. The skin path is set to =custom,pattern=. The following locations will be considered in turn, until a template is found: 
    158158   1 =templates/%SANDBOXWEB%/function.custom.tmpl= _(rule 1)_ :skull: 
     
    162162   3 =%SANDBOXWEB%.CustomSkinFunctionTemplate= _(rule 3)_ 
    163163   3 =%SANDBOXWEB%.PatternSkinFunctionTemplate= _(rule 3)_ 
    164    4 =System.CustomSkinFunctionTemplate= _(rule 4)_ 
    165    4 =System.PatternSkinFunctionTemplate= _(rule 4)_ 
     164   4 =%SYSTEMWEB%.CustomSkinFunctionTemplate= _(rule 4)_ 
     165   4 =%SYSTEMWEB%.PatternSkinFunctionTemplate= _(rule 4)_ 
    166166   5 =templates/%SANDBOXWEB%/function.tmpl= _(rule 5)_ :skull: 
    167167   6 =templates/function.tmpl= _(rule 6)_ 
    168168   7 =%SANDBOXWEB%.FunctionTemplate= _(rule 7)_ 
    169    8 =System.FunctionTemplate= _(rule 8)_ 
     169   8 =%SYSTEMWEB%.FunctionTemplate= _(rule 8)_ 
    170170<blockquote class="foswikiHelp">%X% :skull: This usage is supported *for compatibility only* and is *deprecated*. Store web-specific templates in topics instead. </blockquote> 
    171171 
Note: See TracChangeset for help on using the changeset viewer.