Changeset 657
- Timestamp:
- 11/14/08 16:42:45 (4 years ago)
- Location:
- branches/Release04x02
- Files:
-
- 1 deleted
- 11 edited
-
data/TWiki/SkinTemplates.txt (modified) (1 diff)
-
data/TWiki/TWikiUpgradeGuide.txt (modified) (1 diff)
-
lib/MANIFEST (modified) (3 diffs)
-
lib/TWiki/Func.pm (modified) (2 diffs)
-
pub/TWiki/SkinTemplates/testscreen.gif (deleted)
-
templates/css.tmpl (modified) (1 diff)
-
templates/oopsmore.tmpl (modified) (1 diff)
-
tools/TWikiKernel/MANIFEST (modified) (3 diffs)
-
twikiplugins/CommentPlugin/data/TWiki/CommentPlugin.txt (modified) (3 diffs)
-
twikiplugins/CommentPlugin/data/TWiki/CommentPluginTemplate.txt (modified) (2 diffs)
-
twikiplugins/TinyMCEPlugin/data/TWiki/TinyMCEPlugin.txt (modified) (1 diff)
-
twikiplugins/TopicUserMappingContrib/data/TWiki/ManagingUsers.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/Release04x02/data/TWiki/SkinTemplates.txt
r522 r657 54 54 See IfStatements for details of supported context identifiers. 55 55 56 #FindingTemplates 56 57 ---+++ Finding Skin Templates 57 58 -
branches/Release04x02/data/TWiki/TWikiUpgradeGuide.txt
r624 r657 156 156 ---+++ Template spec changed 157 157 158 Until TWiki 4.0.5 TWiki.TWikiTemplatesthe 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.158 Until 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. 159 159 160 160 This 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 157 157 data/TWiki/SitePermissions.txt 0644 158 158 data/TWiki/Skins.txt 0644 159 data/TWiki/SkinTemplates.txt 0644 159 160 data/TWiki/StandardColors.txt 0644 160 161 data/TWiki/StartingPoints.txt 0644 161 162 data/TWiki/StaticMethod.txt 0644 163 data/TWiki/TemplatesTopics.txt 0644 162 164 data/TWiki/TwentyMinuteTutorial.txt 0644 163 165 data/TWiki/TWikiJavascripts.txt 0644 … … 171 173 data/TWiki/TWikiSkinBrowser.txt 0644 172 174 data/TWiki/TWikiSystemRequirements.txt 0644 173 data/TWiki/TWikiTemplates.txt 0644174 175 data/TWiki/TWikiTopics.txt 0644 175 176 data/TWiki/TWikiUpgradeGuide.txt 0644 … … 979 980 pub/TWiki/TWikiJavascripts/twikiuiToggle.js 0644 980 981 pub/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 982 pub/TWiki/SkinTemplates/base.css 0644 983 pub/TWiki/SkinTemplates/default.css 0644 984 pub/TWiki/SkinTemplates/oopsmore_diff_debug.gif 0644 985 pub/TWiki/SkinTemplates/oopsmore_diff_sequential.gif 0644 986 pub/TWiki/SkinTemplates/oopsmore_diff_sidebyside.gif 0644 987 987 pub/TWiki/WabiSabi/wabisabi.gif 0644 988 988 pub/TWiki/WebPreferences/Dakar.gif 0644 -
branches/Release04x02/lib/TWiki/Func.pm
r630 r657 1909 1909 ---+++ readTemplate( $name, $skin ) -> $text 1910 1910 1911 Read a template or skin. Embedded [[%SYSTEMWEB%. TWikiTemplates][template directives]] get expanded1911 Read a template or skin. Embedded [[%SYSTEMWEB%.SkinTemplates][template directives]] get expanded 1912 1912 * =$name= - Template name, e.g. ='view'= 1913 1913 * =$skin= - Comma-separated list of skin names, optional, e.g. ='print'= … … 1939 1939 list of loaded templates, overwriting any previous definition. 1940 1940 1941 How TWiki searches for templates is described in TWikiTemplates.1941 How TWiki searches for templates is described in SkinTemplates. 1942 1942 1943 1943 If template text is found, extracts include statements and fully expands them. -
branches/Release04x02/templates/css.tmpl
r3 r657 9 9 10 10 %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'); 12 12 </style>%TMPL:END% 13 13 14 14 15 15 %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'); 17 17 </style>%TMPL:END% 18 18 -
branches/Release04x02/templates/oopsmore.tmpl
r594 r657 95 95 <form name="main" action="%SCRIPTURLPATH{"rdiff"}%/%WEB%/%TOPIC%"> 96 96 * %MAKETEXT{"Older revision:"}% <input class="twikiInputField" type="text" name="rev2" size="6" value="1" /> %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> 98 98 <input type="submit" class="twikiButton" value='%MAKETEXT{"View difference"}%' /> 99 99 </form> -
branches/Release04x02/tools/TWikiKernel/MANIFEST
r625 r657 147 147 data/TWiki/SitePermissions.txt 0660 148 148 data/TWiki/Skins.txt 0660 149 data/TWiki/SkinTemplates.txt 0660 149 150 data/TWiki/StandardColors.txt 0660 150 151 data/TWiki/StartingPoints.txt 0660 151 152 data/TWiki/StaticMethod.txt 0660 153 data/TWiki/TemplatesTopics.txt 0660 152 154 data/TWiki/TwentyMinuteTutorial.txt 0660 153 155 data/TWiki/TWiki.txt 0660 … … 161 163 data/TWiki/TWikiSkinBrowser.txt 0660 162 164 data/TWiki/TWikiSystemRequirements.txt 0660 163 data/TWiki/TWikiTemplates.txt 0660164 165 data/TWiki/TWikiTopics.txt 0660 165 166 data/TWiki/TWikiUpgradeGuide.txt 0660 … … 572 573 pub/TWiki/ProjectLogos/T-logo.svg 0660 573 574 pub/TWiki/ProjectLogos/favicon.ico 0660 574 pub/TWiki/TWikiTemplates/testscreen.gif 0660575 575 pub/TWiki/TWikiJavascripts/twiki.js 0660 576 576 pub/TWiki/TWikiJavascripts/twiki_attach.js 0660 -
branches/Release04x02/twikiplugins/CommentPlugin/data/TWiki/CommentPlugin.txt
r528 r657 91 91 Customisation of the comment plugin requires 92 92 * familiarity with HTML forms 93 * some familiarity with the [[%SYSTEMWEB%. TWikiTemplates][TWiki templating language]].93 * some familiarity with the [[%SYSTEMWEB%.SkinTemplates][Skin Templates]]. 94 94 95 95 To 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. … … 116 116 117 117 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% 120 119 121 120 ---+++ Customisation example … … 229 228 | =%<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. | 230 229 | =%<nop>COMMENTPLUGIN_DEFAULT_TYPE%= | =above= | Default template type | 231 These can be set in ! SitePreferences, in !WebPreferencesor in individual topics.230 These can be set in !%SYSTEMWEB%.DefaultPreferences, !%USERSWEB%.SitePreferences, in !WebPreferences, or in individual topics. 232 231 233 232 #Installation -
branches/Release04x02/twikiplugins/CommentPlugin/data/TWiki/CommentPluginTemplate.txt
r481 r657 1 %META:TOPICINFO{author="ProjectContributor" date="1166310108" format="1.0" version="$Rev: 1 6647$"}%1 %META:TOPICINFO{author="ProjectContributor" date="1166310108" format="1.0" version="$Rev: 15131 $"}% 2 2 %META:TOPICPARENT{name="CommentPlugin"}% 3 3 … … 6 6 See [[%SYSTEMWEB%.CommentPlugin#Customisation][CommentPlugin: Customisation]] for help. 7 7 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.8 While 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. 9 9 10 10 %ICON{"hand"}% See CommentPluginExamples to view rendered templates -
branches/Release04x02/twikiplugins/TinyMCEPlugin/data/TWiki/TinyMCEPlugin.txt
r463 r657 89 89 theme_advanced_path: false, 90 90 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%" 92 92 </verbatim> 93 93 * Additional settings for specific browsers. -
branches/Release04x02/twikiplugins/TopicUserMappingContrib/data/TWiki/ManagingUsers.txt
r610 r657 92 92 3 Email to notify the TWiki admin of registration - =templates/registernotifyadmin.tmpl= 93 93 94 As these are TWikiTemplates, they can be customized and selected using the SKIN path setting.94 As these are SkinTemplates, they can be customized and selected using the SKIN path setting. 95 95 Because there are default tmpl files in the =templates= dir, this cannot use Template topics. 96 96
Note: See TracChangeset
for help on using the changeset viewer.
