Changeset 657


Ignore:
Timestamp:
11/14/08 16:42:45 (4 years ago)
Author:
KennethLavrsen
Message:

Item109: Finishing the TWikiTemplates to SkinTemplates and TemplateTopics split

Location:
branches/Release04x02
Files:
1 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • branches/Release04x02/data/TWiki/SkinTemplates.txt

    r522 r657  
    5454See IfStatements for details of supported context identifiers. 
    5555 
     56#FindingTemplates 
    5657---+++ Finding Skin Templates 
    5758 
  • branches/Release04x02/data/TWiki/TWikiUpgradeGuide.txt

    r624 r657  
    156156---+++ Template spec changed 
    157157 
    158 Until TWiki 4.0.5 TWiki.TWikiTemplates the text inside template definition blocks (anything between %<nop>TMPL:DEF{"block"}% and %<nop>TMPL:END% was stripped of leading and trailing white space incl new lines. 
     158Until TWiki 4.0.5 !SkinTemplates (formerly !TWikiTemplates) the text inside template definition blocks (anything between %<nop>TMPL:DEF{"block"}% and %<nop>TMPL:END% was stripped of leading and trailing white space incl new lines. 
    159159 
    160160This caused a lot of problems for skin developers when you wanted a newline before or after the block text. 
  • branches/Release04x02/lib/MANIFEST

    r630 r657  
    157157data/TWiki/SitePermissions.txt 0644 
    158158data/TWiki/Skins.txt 0644 
     159data/TWiki/SkinTemplates.txt 0644 
    159160data/TWiki/StandardColors.txt 0644 
    160161data/TWiki/StartingPoints.txt 0644 
    161162data/TWiki/StaticMethod.txt 0644 
     163data/TWiki/TemplatesTopics.txt 0644 
    162164data/TWiki/TwentyMinuteTutorial.txt 0644 
    163165data/TWiki/TWikiJavascripts.txt 0644 
     
    171173data/TWiki/TWikiSkinBrowser.txt 0644 
    172174data/TWiki/TWikiSystemRequirements.txt 0644 
    173 data/TWiki/TWikiTemplates.txt 0644 
    174175data/TWiki/TWikiTopics.txt 0644 
    175176data/TWiki/TWikiUpgradeGuide.txt 0644 
     
    979980pub/TWiki/TWikiJavascripts/twikiuiToggle.js 0644 
    980981pub/TWiki/TWikiJavascripts/unicode_chars.js 0644 
    981 pub/TWiki/TWikiTemplates/base.css 0644 
    982 pub/TWiki/TWikiTemplates/default.css 0644 
    983 pub/TWiki/TWikiTemplates/oopsmore_diff_debug.gif 0644 
    984 pub/TWiki/TWikiTemplates/oopsmore_diff_sequential.gif 0644 
    985 pub/TWiki/TWikiTemplates/oopsmore_diff_sidebyside.gif 0644 
    986 pub/TWiki/TWikiTemplates/testscreen.gif 0644 
     982pub/TWiki/SkinTemplates/base.css 0644 
     983pub/TWiki/SkinTemplates/default.css 0644 
     984pub/TWiki/SkinTemplates/oopsmore_diff_debug.gif 0644 
     985pub/TWiki/SkinTemplates/oopsmore_diff_sequential.gif 0644 
     986pub/TWiki/SkinTemplates/oopsmore_diff_sidebyside.gif 0644 
    987987pub/TWiki/WabiSabi/wabisabi.gif 0644 
    988988pub/TWiki/WebPreferences/Dakar.gif 0644 
  • branches/Release04x02/lib/TWiki/Func.pm

    r630 r657  
    19091909---+++ readTemplate( $name, $skin ) -> $text 
    19101910 
    1911 Read a template or skin. Embedded [[%SYSTEMWEB%.TWikiTemplates][template directives]] get expanded 
     1911Read a template or skin. Embedded [[%SYSTEMWEB%.SkinTemplates][template directives]] get expanded 
    19121912   * =$name= - Template name, e.g. ='view'= 
    19131913   * =$skin= - Comma-separated list of skin names, optional, e.g. ='print'= 
     
    19391939list of loaded templates, overwriting any previous definition. 
    19401940 
    1941 How TWiki searches for templates is described in TWikiTemplates. 
     1941How TWiki searches for templates is described in SkinTemplates. 
    19421942 
    19431943If template text is found, extracts include statements and fully expands them. 
  • branches/Release04x02/templates/css.tmpl

    r3 r657  
    99 
    1010%TMPL:DEF{"twikibase"}%<style type="text/css" media="all"> 
    11 @import url('%PUBURLPATH%/%SYSTEMWEB%/TWikiTemplates/base.css'); 
     11@import url('%PUBURLPATH%/%SYSTEMWEB%/SkinTemplates/base.css'); 
    1212</style>%TMPL:END% 
    1313 
    1414 
    1515%TMPL:DEF{"twikistyle"}%<style type="text/css" media="all"> 
    16 @import url('%PUBURLPATH%/%SYSTEMWEB%/TWikiTemplates/default.css'); 
     16@import url('%PUBURLPATH%/%SYSTEMWEB%/SkinTemplates/default.css'); 
    1717</style>%TMPL:END% 
    1818 
  • branches/Release04x02/templates/oopsmore.tmpl

    r594 r657  
    9595<form name="main" action="%SCRIPTURLPATH{"rdiff"}%/%WEB%/%TOPIC%"> 
    9696   * %MAKETEXT{"Older revision:"}% <input class="twikiInputField" type="text" name="rev2" size="6" value="1" /> &nbsp; %MAKETEXT{"Newer revision:"}% <input class="twikiInputField" type="text" name="rev1" size="6" value="%PARAM1%" /><br /> 
    97      <table class="twikiTable twikiDiffOptions"><tr><td><label for="sequential"><img src="%PUBURLPATH%/%SYSTEMWEB%/TWikiTemplates/oopsmore_diff_sequential.gif" alt="sequential" width="80" height="80" /></label></td><td><label for="sidebyside"><img src="%PUBURLPATH%/%SYSTEMWEB%/TWikiTemplates/oopsmore_diff_sidebyside.gif" alt="side by side" width="80" height="80" /></label></td><td><label for="debug"><img src="%PUBURLPATH%/%SYSTEMWEB%/TWikiTemplates/oopsmore_diff_debug.gif" alt="debug" width="80" height="80" /></label></td></tr><tr><td><input type="radio" name="render" id="sequential" value="sequential" checked="checked" /><label for="sequential"> %MAKETEXT{"Sequential"}%</label></td><td><input type="radio" name="render" id="sidebyside" value="sidebyside" /><label for="sidebyside"> %MAKETEXT{"Side by side"}%</label></td><td><input type="radio" name="render" id="debug" value="debug" /><label for="debug"> %MAKETEXT{"Debug"}%</label></td></tr></table> 
     97     <table class="twikiTable twikiDiffOptions"><tr><td><label for="sequential"><img src="%PUBURLPATH%/%SYSTEMWEB%/SkinTemplates/oopsmore_diff_sequential.gif" alt="sequential" width="80" height="80" /></label></td><td><label for="sidebyside"><img src="%PUBURLPATH%/%SYSTEMWEB%/TWikiTemplates/oopsmore_diff_sidebyside.gif" alt="side by side" width="80" height="80" /></label></td><td><label for="debug"><img src="%PUBURLPATH%/%SYSTEMWEB%/TWikiTemplates/oopsmore_diff_debug.gif" alt="debug" width="80" height="80" /></label></td></tr><tr><td><input type="radio" name="render" id="sequential" value="sequential" checked="checked" /><label for="sequential"> %MAKETEXT{"Sequential"}%</label></td><td><input type="radio" name="render" id="sidebyside" value="sidebyside" /><label for="sidebyside"> %MAKETEXT{"Side by side"}%</label></td><td><input type="radio" name="render" id="debug" value="debug" /><label for="debug"> %MAKETEXT{"Debug"}%</label></td></tr></table> 
    9898     <input type="submit" class="twikiButton" value='%MAKETEXT{"View difference"}%' /> 
    9999</form> 
  • branches/Release04x02/tools/TWikiKernel/MANIFEST

    r625 r657  
    147147data/TWiki/SitePermissions.txt 0660 
    148148data/TWiki/Skins.txt 0660 
     149data/TWiki/SkinTemplates.txt 0660 
    149150data/TWiki/StandardColors.txt 0660 
    150151data/TWiki/StartingPoints.txt 0660 
    151152data/TWiki/StaticMethod.txt 0660 
     153data/TWiki/TemplatesTopics.txt 0660 
    152154data/TWiki/TwentyMinuteTutorial.txt 0660 
    153155data/TWiki/TWiki.txt 0660 
     
    161163data/TWiki/TWikiSkinBrowser.txt 0660 
    162164data/TWiki/TWikiSystemRequirements.txt 0660 
    163 data/TWiki/TWikiTemplates.txt 0660 
    164165data/TWiki/TWikiTopics.txt 0660 
    165166data/TWiki/TWikiUpgradeGuide.txt 0660 
     
    572573pub/TWiki/ProjectLogos/T-logo.svg 0660 
    573574pub/TWiki/ProjectLogos/favicon.ico 0660 
    574 pub/TWiki/TWikiTemplates/testscreen.gif 0660 
    575575pub/TWiki/TWikiJavascripts/twiki.js 0660 
    576576pub/TWiki/TWikiJavascripts/twiki_attach.js 0660 
  • branches/Release04x02/twikiplugins/CommentPlugin/data/TWiki/CommentPlugin.txt

    r528 r657  
    9191Customisation of the comment plugin requires 
    9292        * familiarity with HTML forms 
    93         * some familiarity with the [[%SYSTEMWEB%.TWikiTemplates][TWiki templating language]]. 
     93        * some familiarity with the [[%SYSTEMWEB%.SkinTemplates][Skin Templates]]. 
    9494 
    9595To define a comment type, you have to provide two simple template definitions in the template file; one for the prompt box, and one for the generated output. If we have a template type "mytype", these are named =PROMPT:mytype= and =OUTPUT:mytype= respectively. See =comments.tmpl= in the templates directory for examples. 
     
    116116 
    117117 
    118 %X% Templates are picked up by following the [[TWikiTemplates#Finding_Templates][standard TWiki rules]] for locating template files. Note that you can use =%TMPL:INCLUDE= to include other files of templates. %BR% 
    119 %X% Note that from TWiki release 4.1.0 leading and trailing whitespace is no longer stripped. This means that when you upgrade to TWiki 4.1.X you may need to remove the first line break in your custom comment templates. See TWiki.TWikiReleaseNotes04x01 for more information. 
     118%X% Templates are picked up by following the [[SkinTemplates#FindingTemplates][standard rules for locating template files]]. Note that you can use =%TMPL:INCLUDE= to include other files of templates. %BR% 
    120119 
    121120---+++ Customisation example 
     
    229228| =%<nop>COMMENTPLUGIN_TEMPLATES%= | =comments= | Name of template file in the 'templates' directory that contains the comment templates. The default 'comments.tmpl' automatically includes user templates from %SYSTEMWEB%.CommentPluginTemplate, which in turn includes %SYSTEMWEB%.UserCommentsTemplate. | 
    230229| =%<nop>COMMENTPLUGIN_DEFAULT_TYPE%= | =above= | Default template type | 
    231 These can be set in !SitePreferences, in !WebPreferences or in individual topics. 
     230These can be set in !%SYSTEMWEB%.DefaultPreferences, !%USERSWEB%.SitePreferences, in !WebPreferences, or in individual topics. 
    232231 
    233232#Installation 
  • branches/Release04x02/twikiplugins/CommentPlugin/data/TWiki/CommentPluginTemplate.txt

    r481 r657  
    1 %META:TOPICINFO{author="ProjectContributor" date="1166310108" format="1.0" version="$Rev: 16647 $"}% 
     1%META:TOPICINFO{author="ProjectContributor" date="1166310108" format="1.0" version="$Rev: 15131 $"}% 
    22%META:TOPICPARENT{name="CommentPlugin"}% 
    33 
     
    66See [[%SYSTEMWEB%.CommentPlugin#Customisation][CommentPlugin: Customisation]] for help. 
    77 
    8 While this topic can be viewed as a TWiki topic, it is used by the CommentPlugin as a template file - see TWikiTemplates. The important content in here is in the verbatim blocks. The rest of the topic is just comments. 
     8While this topic can be viewed as a TWiki topic, it is used by the CommentPlugin as a template file. The syntax is the same as used for the templates used for presentation in skins - see SkinTemplates. The important content in here is in the verbatim blocks. The rest of the topic is just comments. 
    99 
    1010%ICON{"hand"}% See CommentPluginExamples to view rendered templates 
  • branches/Release04x02/twikiplugins/TinyMCEPlugin/data/TWiki/TinyMCEPlugin.txt

    r463 r657  
    8989   theme_advanced_path: false, 
    9090   theme_advanced_statusbar_location : "bottom", 
    91    content_css : "%PUBURLPATH%/%SYSTEMWEB%/TinyMCEPlugin/wysiwyg%IF{"$TINYMCEPLUGIN_DEBUG" then="_src"}%.css,%PUBURLPATH%/%SYSTEMWEB%/TWikiTemplates/base.css,%TWIKISTYLEURL%,%TWIKICOLORSURL%" 
     91   content_css : "%PUBURLPATH%/%SYSTEMWEB%/TinyMCEPlugin/wysiwyg%IF{"$TINYMCEPLUGIN_DEBUG" then="_src"}%.css,%PUBURLPATH%/%SYSTEMWEB%/SkinTemplates/base.css,%TWIKISTYLEURL%,%TWIKICOLORSURL%" 
    9292</verbatim> 
    9393   * Additional settings for specific browsers. 
  • branches/Release04x02/twikiplugins/TopicUserMappingContrib/data/TWiki/ManagingUsers.txt

    r610 r657  
    9292   3 Email to notify the TWiki admin of registration - =templates/registernotifyadmin.tmpl= 
    9393 
    94 As these are TWikiTemplates, they can be customized and selected using the SKIN path setting. 
     94As these are SkinTemplates, they can be customized and selected using the SKIN path setting. 
    9595Because there are default tmpl files in the =templates= dir, this cannot use Template topics. 
    9696 
Note: See TracChangeset for help on using the changeset viewer.