data/TWiki/InstantEnhancements.txt,v
changeset 0 414e01d06fd5
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/data/TWiki/InstantEnhancements.txt,v	Sat Jan 26 15:50:53 2008 +0100
     1.3 @@ -0,0 +1,619 @@
     1.4 +head	1.7;
     1.5 +access;
     1.6 +symbols;
     1.7 +locks; strict;
     1.8 +comment	@# @;
     1.9 +
    1.10 +
    1.11 +1.7
    1.12 +date	2008.01.22.03.21.29;	author TWikiContributor;	state Exp;
    1.13 +branches;
    1.14 +next	1.6;
    1.15 +
    1.16 +1.6
    1.17 +date	2007.01.16.04.11.57;	author TWikiContributor;	state Exp;
    1.18 +branches;
    1.19 +next	1.5;
    1.20 +
    1.21 +1.5
    1.22 +date	2006.04.01.05.55.07;	author TWikiContributor;	state Exp;
    1.23 +branches;
    1.24 +next	1.4;
    1.25 +
    1.26 +1.4
    1.27 +date	2006.02.01.12.01.17;	author TWikiContributor;	state Exp;
    1.28 +branches;
    1.29 +next	1.3;
    1.30 +
    1.31 +1.3
    1.32 +date	2004.08.22.21.54.31;	author PeterThoeny;	state Exp;
    1.33 +branches;
    1.34 +next	1.2;
    1.35 +
    1.36 +1.2
    1.37 +date	2004.08.15.05.33.44;	author PeterThoeny;	state Exp;
    1.38 +branches;
    1.39 +next	1.1;
    1.40 +
    1.41 +1.1
    1.42 +date	2003.01.31.09.03.58;	author PeterThoeny;	state Exp;
    1.43 +branches;
    1.44 +next	;
    1.45 +
    1.46 +
    1.47 +desc
    1.48 +@none
    1.49 +@
    1.50 +
    1.51 +
    1.52 +1.7
    1.53 +log
    1.54 +@buildrelease
    1.55 +@
    1.56 +text
    1.57 +@%META:TOPICINFO{author="TWikiContributor" date="1163619832" format="1.0" version="7"}%
    1.58 +---+!! Instant TWiki Site Enhancements
    1.59 +
    1.60 +These quick enhancements are aimed at improving and customising your TWiki.  New TWiki site administrators are especially encouraged to review this document for ideas before deploying a new TWikiSite. The metaphor of building a house is useful.  The listed enhancements are some of the details possible when moving into a new office or home. These small changes can make a *big* differences for user satisfaction at your site. All modifications can be done through your Web browser, and they don't take more then in a couple of minutes.  No system administration expertise is required. Some of these enhancements are also mentioned in the reference manual and other topics.
    1.61 +
    1.62 +Many of these tips are based on setting some special TWikiVariables.
    1.63 +
    1.64 +%S% We recommend implementing at least __some__ of these enhancements __right after installation__ to get a taste for what is possible.  Some of these tips and enhancements _should_ be implemented before or during initial roll-out.
    1.65 +
    1.66 +This may spark your imagination to *really* customize your site so that it's optimal for *your* users.  Slightly more advanced customization tips are listed in TWiki:TWiki.TWikiAdminCookBook.
    1.67 +
    1.68 +%TOC%
    1.69 +
    1.70 +---
    1.71 +---++ Tips using TWiki Variables
    1.72 +
    1.73 +TWikiVariables are a great resource to customize your site. You need to know the variable name and decide where to put it.
    1.74 +
    1.75 +---+++ Change Colors of Page Header/Footer
    1.76 +
    1.77 +Incredibly obvious, maybe, but some TWiki site admins don't get around to changing the default web colors right off, whether they like them or not. Simply changing the defaults will make a huge difference in the overall look. 
    1.78 +
    1.79 +*What we are doing*
    1.80 +
    1.81 +We want to set variable WEBBGCOLOR in topic WebPreferences to one of the StandardColors. <nop>WebPreferences is, as you can guess, a topic which holds all kind of preference setting for each TWiki Web[[ManagingWebs][{*}]]. Each web has its own <nop>WebPreferences, and you can set them differently for each web.
    1.82 +
    1.83 +*How to do it*
    1.84 +
    1.85 +   1 Pick color code from company or product references, the StandardColors table (recommended for 8-bit client compatibility), or some other color reference. 
    1.86 +   2 Go to WebPreferences in each web, and edit the topic.
    1.87 +   3 Set your preferred WEBBGCOLOR preferences variable, and save the topic.
    1.88 +   4 %X% Add a new line immediately after the color code. If there is (invisible) space after the color code, the page header might get strange colors (e.g. black).
    1.89 +
    1.90 +It's just as easy to refine later on, so you're not locked in, just looking better.
    1.91 +
    1.92 +---+++ Set Page Background Color 
    1.93 +
    1.94 +Without getting into the TWikiTemplates system yet, you can easily edit the ==view.tmpl== (in the =templates= directory). In the HTML at the top, the body tag has the page background hardcoded to white ==bgcolor="#ffffff"==. You can change that color value to new variable. First, define a new preferences variable in the site-level [[%LOCALSITEPREFS%]], e.g. =* Set =PAGEBGCOLOR = #d0d0d0=, then edit the ==view.tmpl== template file and change ==bgcolor="#ffffff"== to ==bgcolor="%<nop>PAGEBGCOLOR%"==. If you want, you can set the page background color individually per web, simple add a =* Set =PAGEBGCOLOR = #d0d0d0= bullet to the WebPreferences to overload the site-level preferences. (Without font color control, you'll have to stick to light colors.)
    1.95 +
    1.96 +---+++ Titles-Only Topic List - !WebTopicList
    1.97 +
    1.98 +WebTopicList is a __good first navigation tool for new users,__ a fast-loading linked list (page titles only) of a web's topics is a quick and easy way see what's available. By default, slower, but more powerful WebIndex is used. 
    1.99 +
   1.100 +Without explaining what WEBTOPICLIST is, just try it: 
   1.101 +
   1.102 +   1 Go to WebPreferences in each web, and edit the topic.
   1.103 +   2 In WEBTOPICLIST variable, replace =WebIndex= with =WebTopicList=, and save.
   1.104 +
   1.105 +---+++ Simple way to create %RED% colored text %ENDCOLOR% and graphics
   1.106 +
   1.107 +This should be enabled, see the "Miscellaneous Settings" in the TWikiPreferences, . If not, look at TWiki:TWiki/TWikiPreferences. Look for variables RED, BLUE etc (which define HTML tag FONT). To copy/paste the variables defining the colors you need to see the source text, but =Edit= is disabled. Instead, go to =More= and view the topic in ==raw== format.
   1.108 +
   1.109 +---+++ EZ Graphic Icons to Highlight Text
   1.110 +
   1.111 +Icons can do a lot to enhance scannability of topics. For instance, on *HELP* pages, most people tend to jump around looking for answers rather than reading through - icons help point out the most important bits.
   1.112 +
   1.113 +TWikiDocGraphics has a whole collection of ready icon images. You can use these images in any topic by referring to their name. For example, !TWikiDocGraphics has an image attachment called =days.gif=. To show this image in a topic, write =%<nop>ICON{"days"}%= to get %ICON{"days"}%.
   1.114 +
   1.115 +*Creating image variables*
   1.116 +
   1.117 +You may find it easier to write shorthand graphic notation. You can create your own image variables by defining them in a preference topic (most likely [[%USERSWEB%.%WIKIPREFSTOPIC%]].)
   1.118 +
   1.119 +A variable name may be one letter, like =Y=, or may be longer like =HELP=, =WARN= etc. You can also add your own images, e.g. a =NEW=, or a =ASK= to ask question.
   1.120 +
   1.121 +For instance, if we want to write =%<nop>DOWN%= instead of =%<nop>ICON{"arrowbdown"}%=, define the new variable like this:
   1.122 +<verbatim>
   1.123 +   * Set DOWN = %ICON{"arrowbdown"}%
   1.124 +</verbatim>
   1.125 +Or if you have a custom image to use, attach this to [[%LOCALSITEPREFS%]] and write:
   1.126 +<verbatim>
   1.127 +   * Set DOWN = <img src="%ATTACHURL%/my_image.gif" border="0" alt="DOWN" width="16" height="16" />
   1.128 +</verbatim>
   1.129 +
   1.130 +Most images in TWikiDocGraphics are 16 x 16 pixels.
   1.131 +
   1.132 +   * __Related:__ There are other approaches for creating more extensive TWiki icon libraries. This is a simply and quick way to get started. See TWikiDocGraphics for more info.
   1.133 +
   1.134 +---+++ Use TOC variable to create table of content
   1.135 +
   1.136 +TOC is Table-Of-Content, generated automagically from headers (defined like that: ==---++== , see TWikiShorthand).
   1.137 +
   1.138 +For example, you may want to put all your custom variables in [[%LOCALSITEPREFS%]] right on top of the page, and generate table of contents, like:
   1.139 +
   1.140 +   * Preferences for easy creating nice pages 
   1.141 +      * Graphics icons in text 
   1.142 +      * Colored text 
   1.143 +   * System Preferences 
   1.144 +      * Contents of page header and footer 
   1.145 +      * User interface defaults 
   1.146 +      * Email 
   1.147 +      * Plugins 
   1.148 +      * Notes 
   1.149 +
   1.150 +Non-admin users wil be interested only in first part, non-system preferences.
   1.151 +
   1.152 +---
   1.153 +---++ Personal Productivity - Tools and Tips for Working Faster
   1.154 +
   1.155 +Although this area applies to all TWiki setups, the initial focus is on TWiki site managers working on a Linux/Apache TWiki site, from a Windows local PC. The assumption being: if you're working with Linux as your desktop, you're probably a programmer or system admin and have these basics handled!
   1.156 +
   1.157 +---+++ Use your favorite text editor for major edits
   1.158 +
   1.159 +When you have a fair bit of TWiki formatting work - for example, compiling new info pages from various cut'n'paste sources, editing multiple TWiki topics or contributed material - it's often easier to use a real *[[TextEditor]]* instead of the browser's text edit box.  There are several methods for doing this.  For Windows, there are several well-recommended text editors.
   1.160 +
   1.161 +__Windows&nbsp;Example:__ [[http://textpad.com][TextPad]] is a low-cost, top flight Windows program, with an extended trial period. You can download from a well-stocked library of user-contributed macros, dictionaries, and syntax and clip files. You can also easily create a TWiki clip collection that allows you to format text with TWiki code: select a text string and click for bold, italic, links, bullet lists - just like a regular HTML editor - and also insert blocks of TWiki code, use simple or regex search and replace, more.
   1.162 +
   1.163 +__Copy&nbsp;&amp;&nbsp;Paste:__ Using the web window this can work very well.  System differences may present difficulties with this method but it is simple and reliable in most cases.
   1.164 +
   1.165 +__Browser&nbsp;Integration:__ Some web browsers can be configured to automatically use an external editor.  See your browser documentation for details.  Such a configuration and a small tool for Linux is described in an example on TWiki.org. TWiki:Codev/EditDaemonWithGVimIntegration
   1.166 +
   1.167 +__Alternate&nbsp;Browser:__ While your main browser might not have the features for TWiki topic editing, another one might.
   1.168 +   * An example on the Linux platform is the =w3m= pager/browser for Linux.  This is a text based version similar to =lynx= but it includes text editor features and a configurable command set to act like =lynx= if you are more accustomed to it.
   1.169 +
   1.170 +---++ Ready to use SEARCH 
   1.171 +
   1.172 +---+++ Personal directory of topics you're involved in
   1.173 +
   1.174 +Here's how you can create your own personal directory of topics you've contributed to recently. Copy the text below (between *Start Copy* and *End Copy*) and paste it into your personal page (%WIKIUSERNAME%). You can add other webs to search by duplicating one of the web subsections and editing the string {web ="webname"} in the search parameters to refer to the specific web you want to search. This script would also work for a group.
   1.175 +
   1.176 +*Start Copy*
   1.177 +<verbatim>
   1.178 +__Here's a list of topics I've been involved in recently:__
   1.179 +
   1.180 +---++++ Codev
   1.181 +
   1.182 +%SEARCH{ "%TOPIC%" web="Codev" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="20"}%
   1.183 +---++++ Support
   1.184 +
   1.185 +%SEARCH{ "%TOPIC%" web="Support" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="20"}%
   1.186 +
   1.187 +---++++ TWiki
   1.188 +
   1.189 +%SEARCH{ "%TOPIC%" web="TWiki" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="10"}%
   1.190 +
   1.191 +</verbatim>
   1.192 +*End Copy*
   1.193 +
   1.194 +The SEARCH variable has many more formatting options, see TWikiVariables.
   1.195 +
   1.196 +---+++ Recently changed pages 
   1.197 +Here are the last 15 changed pages, formatted into a neat table.
   1.198 +
   1.199 +<verbatim>
   1.200 +<table>
   1.201 +%SEARCH{ "\.*" scope="topic" type="regex" nosearch="on" nototal="on" order="modified" reverse="on"  format="<tr><td>  [[$topic][$topic]] </td><td>  $wikiusername  </td><td> $date  </td></tr>" limit="15" }%
   1.202 +</table>
   1.203 +</verbatim>
   1.204 +
   1.205 +---
   1.206 +---++ Hidden Edit Lock for Individual Topics
   1.207 +
   1.208 +When you're creating main gateway pages, you may want to temporarily (or permanently) restrict editing to yourself or a limited group of people. You can do this with a Preference setting that includes one or more users and groups. Only auhorized users will be able to use ==Edit==.
   1.209 +   * __Example:__ ==Set ALLOWTOPICCHANGE = <nop>%USERSWEB%.UserName, <nop>%USERSWEB%.GroupName==
   1.210 +   * %T% *To hide the setting:* Use HTML comment tags - put ==&lt;!--== on the line _above the setting, and ==--&gt;== on the line below.
   1.211 +
   1.212 +---
   1.213 +---++ Change the Default Logo
   1.214 +
   1.215 +If you want to change the logo per TWiki web, simply attach a new logo.gif to the web's <nop>WebPreferences, and change the logo's filename by overriding the name using WEBLOGONAME in <nop>WebPreferences:  
   1.216 +   * =Set WEBLOGONAME = filename.gif=
   1.217 +
   1.218 +Other cusomtisations are possible using =WEBLOGOIMG=, =WEBLOGOURL=, and =WEBLOGOALT= (they mirror the =WIKILOGO*= TWiki variables, but are applied to each web, rather than to the %<nop>WIKITOOLNAME%-based references)
   1.219 +
   1.220 +If you'd like to have the same customised logo for all the webs, make these changes in %LOCALSITEPREFS% instead of each web's <nop>WebPreferences, e.g.,
   1.221 +   * =Set WEBLOGOIMG = %<nop>PUBURLPATH%/%USERSWEB%/WebPreferences/mylogo.gif=
   1.222 +
   1.223 +----
   1.224 +---++ Customize Topic Classification Forms
   1.225 +
   1.226 +With a simple one or two-line default topic form available for every topic  - in *Edit* mode, click the ==[Add]== button, and select the form if it isn't already enabled. Then, click the title to get to the actual form, ==[Edit]==, and carefully change values, probably basic page classifications. You'll get some increased value, and hands-on experience with TWikiForms, without having to read up about them first. %X% __(add the corresponding search per category - copy a default and change)__
   1.227 +
   1.228 +
   1.229 +---
   1.230 +---++ Add Your Favorite <nop>JavaScript Features
   1.231 +
   1.232 +You're no doubt familiar or better with HTML, JS, and "webmastering". Without getting into the TWikiTemplates system yet, you can easily edit the ==view.pattern.tmpl== (if you are using default pattern skin) (in the =templates= directory) for some dramatic effects. The top of the template is mostly regular HTML with some variables. Open up some space in the ==&lt;head&gt;== area, and you can drop in reliable <nop>JavaScripts - a pop-up window script, for example - or tag it as an external script.
   1.233 +
   1.234 +   * %T% Obviously, you can do the same - place a link to an external stylesheet as well. If you set values for standard HTML tags, you can control a good deal of the type size, style and color with out adding CSS tags. __example__
   1.235 +
   1.236 +%X% Depending on what you load up, you may change the overall cross-browser compatibility - however be careful that your site does not look beat up in various other browsers. The scripts you choose will determine compatibility.
   1.237 +
   1.238 +---
   1.239 +---++ Customize The Left Navigation Bar
   1.240 +
   1.241 +Customize the contents of the WebLeftBar for each web to include important topics for that web, or to link to an important topic for the overall site. Each web has its own WebLeftBar page. (This is specific to the PatternSkin.) 
   1.242 +
   1.243 +----
   1.244 +%T% __NOTE:__ Feel free to add your own tips to TWiki:%WEB%.%TOPIC% as quick notes at the end of the list, following the existing format!
   1.245 +
   1.246 +__Related Topics:__ AdminDocumentationCategory
   1.247 +
   1.248 +-- __Contributors:__ TWiki:Main.GrantBow, TWiki:Main.LynnwoodBrown, TWiki:Main.MikeMannix, TWiki:Main.PeterMasiar, TWiki:Main.PeterThoeny, TWiki:Main.MattWilkie, TWiki:Main.AmandaSmith
   1.249 +@
   1.250 +
   1.251 +
   1.252 +1.6
   1.253 +log
   1.254 +@buildrelease
   1.255 +@
   1.256 +text
   1.257 +@d1 1
   1.258 +a1 1
   1.259 +%META:TOPICINFO{author="TWikiContributor" date="1163619832" format="1.0" version="6"}%
   1.260 +d61 1
   1.261 +a61 1
   1.262 +You may find it easier to write shorthand graphic notation. You can create your own image variables by defining them in a preference topic (most likely [[%MAINWEB%.%WIKIPREFSTOPIC%]].)
   1.263 +d153 1
   1.264 +a153 1
   1.265 +   * __Example:__ ==Set ALLOWTOPICCHANGE = <nop>%MAINWEB%.UserName, <nop>%MAINWEB%.GroupName==
   1.266 +d165 1
   1.267 +a165 1
   1.268 +   * =Set WEBLOGOIMG = %<nop>PUBURLPATH%/%MAINWEB%/WebPreferences/mylogo.gif=
   1.269 +d176 1
   1.270 +a176 1
   1.271 +You're no doubt familiar or better with HTML, JS, and "webmastering". Without getting into the TWikiTemplates system yet, you can easily edit the ==view.tmpl== (in the =templates= directory) for some dramatic effects. The top of the template is mostly regular HTML with some variables. Open up some space in the ==&lt;head&gt;== area, and you can drop in reliable <nop>JavaScripts - a pop-up window script, for example - or tag it as an external script.
   1.272 +@
   1.273 +
   1.274 +
   1.275 +1.5
   1.276 +log
   1.277 +@buildrelease
   1.278 +@
   1.279 +text
   1.280 +@d1 1
   1.281 +a1 1
   1.282 +%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="5"}%
   1.283 +d145 1
   1.284 +a145 1
   1.285 +%SEARCH{ "\.*" scope="topic" regex="on" nosearch="on" nototal="on" order="modified" reverse="on"  format="<tr><td>  [[$topic][$topic]] </td><td>  $wikiusername  </td><td> $date  </td></tr>" limit="15" }%
   1.286 +@
   1.287 +
   1.288 +
   1.289 +1.4
   1.290 +log
   1.291 +@buildrelease
   1.292 +@
   1.293 +text
   1.294 +@d1 1
   1.295 +a1 1
   1.296 +%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="4"}%
   1.297 +d29 4
   1.298 +a32 4
   1.299 +	1 Pick color code from company or product references, the StandardColors table (recommended for 8-bit client compatibility), or some other color reference. 
   1.300 +	2 Go to WebPreferences in each web, and edit the topic.
   1.301 +	3 Set your preferred WEBBGCOLOR preferences variable, and save the topic.
   1.302 +	4 %X% Add a new line immediately after the color code. If there is (invisible) space after the color code, the page header might get strange colors (e.g. black).
   1.303 +d46 2
   1.304 +a47 2
   1.305 +	1 Go to WebPreferences in each web, and edit the topic.
   1.306 +	2 In WEBTOPICLIST variable, replace =WebIndex= with =WebTopicList=, and save.
   1.307 +d57 1
   1.308 +a57 1
   1.309 +%TWIKIWEB%.TWikiDocGraphics has a whole collection of ready icon images. You can use these images in any topic by referring to their name. For example, !TWikiDocGraphics has an image attachment called =days.gif=. To show this image in a topic, write =%<nop>ICON{"days"}%= to get %ICON{"days"}%.
   1.310 +d67 1
   1.311 +a67 1
   1.312 +	* Set DOWN = %ICON{"arrowbdown"}%
   1.313 +d71 1
   1.314 +a71 1
   1.315 +	* Set DOWN = <img src="%ATTACHURL%/my_image.gif" border="0" alt="DOWN" width="16" height="16" />
   1.316 +d74 1
   1.317 +a74 1
   1.318 +Most images in %TWIKIWEB%.TWikiDocGraphics are 16 x 16 pixels.
   1.319 +d76 1
   1.320 +a76 1
   1.321 +	* __Related:__ There are other approaches for creating more extensive TWiki icon libraries. This is a simply and quick way to get started. See %TWIKIWEB%.TWikiDocGraphics for more info.
   1.322 +d84 9
   1.323 +a92 9
   1.324 +	* Preferences for easy creating nice pages 
   1.325 +		* Graphics icons in text 
   1.326 +		* Colored text 
   1.327 +	* System Preferences 
   1.328 +		* Contents of page header and footer 
   1.329 +		* User interface defaults 
   1.330 +		* Email 
   1.331 +		* Plugins 
   1.332 +		* Notes 
   1.333 +d112 1
   1.334 +a112 1
   1.335 +	* An example on the Linux platform is the =w3m= pager/browser for Linux.  This is a text based version similar to =lynx= but it includes text editor features and a configurable command set to act like =lynx= if you are more accustomed to it.
   1.336 +d153 2
   1.337 +a154 2
   1.338 +	* __Example:__ ==Set ALLOWTOPICCHANGE = <nop>%MAINWEB%.UserName, <nop>%MAINWEB%.GroupName==
   1.339 +	* %T% *To hide the setting:* Use HTML comment tags - put ==&lt;!--== on the line _above the setting, and ==--&gt;== on the line below.
   1.340 +d160 1
   1.341 +a160 1
   1.342 +	* =Set WEBLOGONAME = filename.gif=
   1.343 +d164 2
   1.344 +a165 2
   1.345 +If you'd like to have the same customised logo for all the webs, make these changes in %TWIKIWEB%.TWikiPreferences instead of each web's <nop>WebPreferences, e.g.,
   1.346 +	* =Set WEBLOGOIMG = %<nop>PUBURLPATH%/%TWIKIWEB%/WebPreferences/mylogo.gif=
   1.347 +d178 1
   1.348 +a178 1
   1.349 +	* %T% Obviously, you can do the same - place a link to an external stylesheet as well. If you set values for standard HTML tags, you can control a good deal of the type size, style and color with out adding CSS tags. __example__
   1.350 +@
   1.351 +
   1.352 +
   1.353 +1.3
   1.354 +log
   1.355 +@none
   1.356 +@
   1.357 +text
   1.358 +@d1 1
   1.359 +a1 1
   1.360 +%META:TOPICINFO{author="PeterThoeny" date="1093211669" format="1.0" version="1.3"}%
   1.361 +d4 1
   1.362 +a4 1
   1.363 +These quick enhancements are aimed at improving TWiki's ease-of-use.  New TWiki site administrators are especially encouraged to review this document for ideas before deploying a new TWikiSite. The metaphor of building a house is useful.  The listed enhancements are some of the details possible when moving into a new office or home. These small changes can make a *big* differences for user satisfaction at your site. All modifications can be done through your Web browser, and they don't take more then in a couple of minutes.  No system administration expertise is required. Some of these enhancements are also mentioned in the reference manual and other topics.
   1.364 +d8 1
   1.365 +a8 1
   1.366 +%S% We recommend implementing at least __some__ of these enhancements __right after installation__, to get a taste for what is possible.  Some of these tips and enhancements _should_ be implemented before or during initial roll-out.
   1.367 +d10 1
   1.368 +a10 1
   1.369 +This may spark your imagination to *really* customize your site so that it's optimal for *your* users.  Slightly more advanced customization tips are listed in TWikiAdminCookBook.
   1.370 +d15 1
   1.371 +a15 1
   1.372 +---++ Tips using TWikiVariables
   1.373 +d17 1
   1.374 +a17 1
   1.375 +You need to know what is the variable name, and in what page is/should be defined.
   1.376 +d38 1
   1.377 +a38 1
   1.378 +Without getting into the TWikiTemplates system yet, you can easily edit the ==view.tmpl== (in the =templates= directory). In the HTML at the top, the body tag has the page background hardcoded to white ==bgcolor="#ffffff"==. You can change that color value to new variable. First, define a new preferences variable in the site-level  TWikiPreferences, e.g. =* Set =PAGEBGCOLOR = #d0d0d0=, then edit the ==view.tmpl== template file and change ==bgcolor="#ffffff"== to ==bgcolor="%<nop>PAGEBGCOLOR%"==. If you want you can set the page background color individualy per web, simple add a =* Set =PAGEBGCOLOR = #d0d0d0= bullet to the WebPreferences to overload the site-level preferences. (Without font color control, you'll have to stick to light colors.
   1.379 +d40 1
   1.380 +a40 1
   1.381 +---+++ Titles-Only Topic List - WebTopicList
   1.382 +d42 1
   1.383 +a42 1
   1.384 +__A good first navigation tool for new users,__ a fast-loading linked list (page titles only) of a web's topics is a quick and easy way see what's available. By default, slower, but more powerfull WebIndex is used. 
   1.385 +d55 1
   1.386 +a55 1
   1.387 +Graphics in text (like this: %X%) is done also by defining special variables. See [[TWiki.TWikiPreferences]]. Some may prefer longer names, like =HELP=, =WARN= etc. You can also add your own images, e.g. a =NEW=, or a =ASK= to ask question.
   1.388 +d57 1
   1.389 +a57 1
   1.390 +%T% Using graphic icons to highlight important text right from the start can seriously improve how well new users take to a TWiki site. A minimum set of two or three icons can make content much easier to follow, eye-catching, EXCITING. Research says, people tend not to read pages through, but scan them first - and graphics (used sparringly ;-) of course) can help them.  On *HELP* pages, most people tend to jump around looking for answers rather than reading through - icons help point out the most important bits. 
   1.391 +d59 1
   1.392 +a59 1
   1.393 +*How to create your own set of icons:*
   1.394 +d61 16
   1.395 +a76 6
   1.396 +	1 Go to the ==Preferences== topic: TWikiPreferences for site-wide use, or WebPreferences for use in one web only. 
   1.397 +	2 ==Attach== a graphic (the ones on this page are 16x16 pixels), then define a Preference Variable with a short but recognizable name.
   1.398 +	* __Example:__ Enter =%<nop>TEST%= to get %TEST% - see how it's [[WebPreferences#DefineIcon][done]].
   1.399 +	* %T% Ideas for quick icons: NEW; UPDATE; a STAR or other bullet; key symbols relating to your site content.
   1.400 +	* For documentation and help, this [[%TWIKIWEB%.%HOMETOPIC%][%TWIKIWEB%]] web uses three main icons: %H% for *HELP*, %T% for *TIP*, %X% for *IMPORTANT*. 
   1.401 +	* __Related:__ There are other approaches for creating more extensive TWiki icon libraries. This is a simply and quick way to get started. See TWikiDocGraphics for more info.
   1.402 +d82 1
   1.403 +a82 1
   1.404 +For example, you may want to put all your custom variables in TWikiPreferences right on top of the page, and generate table of contens, like:
   1.405 +d99 1
   1.406 +a99 1
   1.407 +Although this area applies to all TWiki set-ups, the initial focus is on TWiki site managers working on a Linux/Apache TWiki site, from a Windows local PC. The assumption being: if you're working with Linux as your desktop, you're probably a programmer or system admin and have these basics handled!
   1.408 +d111 1
   1.409 +a111 1
   1.410 +__Alternate&nbsp;Browser:__ While your main browser might not have the features for TWikic topic editing, another one might.
   1.411 +d141 1
   1.412 +a141 1
   1.413 +Here, last 15 is formatted into neat table.
   1.414 +a154 1
   1.415 +	* _This is in the regular help files but worth highlighting._
   1.416 +d157 4
   1.417 +a160 1
   1.418 +---++ Change the Default Site Logo
   1.419 +d162 4
   1.420 +a165 2
   1.421 +If you want to change the default TWiki logo, attach a new graphic to a topic of choice and change the WIKILOGOIMG variable in the TWikiPreferences, e.g.
   1.422 +	* =Set WIKILOGOIMG = %<nop>PUBURL%/%TWIKIWEB%/MyLogo/mylogo.gif=
   1.423 +d170 1
   1.424 +a170 1
   1.425 +With a simple one or two-line default topic form available for every topic  - in *Edit* mode, click the ==[Add]== button, and select the form if it isn't alredy enabled. Then, click the title to get to the actual form, ==[Edit]==, and carefully change values, probably basic page classifications. You'll get some increased value, and hands-on experience with TWikiForms, without having to read up about them first. %X% __(add the corresponding search per category - copy a default and change)__
   1.426 +d182 5
   1.427 +a187 1
   1.428 +
   1.429 +d190 1
   1.430 +a190 1
   1.431 +*Contributors:* TWiki:Main.GrantBow, TWiki:Main.LynnwoodBrown, TWiki:Main.MikeMannix, TWiki:Main.PeterMasiar, TWiki:Main.PeterThoeny, TWiki:Main.MattWilkie
   1.432 +d192 1
   1.433 +@
   1.434 +
   1.435 +
   1.436 +1.2
   1.437 +log
   1.438 +@none
   1.439 +@
   1.440 +text
   1.441 +@d1 1
   1.442 +a1 1
   1.443 +%META:TOPICINFO{author="PeterThoeny" date="1092548024" format="1.0" version="1.2"}%
   1.444 +d134 3
   1.445 +a136 3
   1.446 +&lt;font size="-1">&lt;table>
   1.447 + %SEARCH{ "\.*" scope="topic" regex="on" nosearch="on" nototal="on" order="modified" reverse="on"  format="&lt;tr>&lt;td>  [[$topic]] &lt;/td>&lt;td>  $wikiusername  &lt;/td>&lt;td> $date  &lt;/td>&lt;/tr>" limit="15" }%
   1.448 + &lt;/table>&lt;/font>
   1.449 +@
   1.450 +
   1.451 +
   1.452 +1.1
   1.453 +log
   1.454 +@none
   1.455 +@
   1.456 +text
   1.457 +@d1 173
   1.458 +a173 163
   1.459 +%META:TOPICINFO{author="PeterThoeny" date="1044003838" format="1.0" version="1.1"}%
   1.460 +---+!! Instant TWiki Site Enhancements
   1.461 +
   1.462 +These quick enhancements are aimed at improving TWiki's ease-of-use.  New TWiki site administrators are especially encouraged to review this document for ideas before deploying a new TWikiSite. The metaphor of building a house is useful.  The listed enhancedments are some of the details possible when moving into a new office or home. These small changes can make a *big* differences for user satisfaction at your site. All modifications can be done through your Web browser, and they don't take more then in a couple of minutes.  No system administration expertise is required. Some of these enhancements are also mentioned in the reference manual and other topics.
   1.463 +
   1.464 +Many of these tips are based on setting some special TWikiVariables.
   1.465 +
   1.466 +%S% We recommend implementing at least __some__ of these enhancements __right after installation__, to get a taste for what is possible.  Some of these tips and enhancements _should_ be implemented before or during initial roll-out.
   1.467 +
   1.468 +This may spark your imagination to *really* customize your site so that it's optimal for *your* users.  Slightly more advanced customization tips are listed in TWikiAdminCookBook.
   1.469 +
   1.470 +%TOC%
   1.471 +
   1.472 +---
   1.473 +---++ Tips using TWikiVariables
   1.474 +
   1.475 +You need to know what is the variable name, and in what page is/should be defined.
   1.476 +
   1.477 +---+++ Change Colors of Page Header/Footer
   1.478 +
   1.479 +Incredibly obvious, maybe, but some TWiki site admins don't get around to changing the default web colors right off, whether they like them or not. Simply changing the defaults will make a huge difference in the overall look. 
   1.480 +
   1.481 +*What we are doing*
   1.482 +
   1.483 +We want to set variable WEBBGCOLOR in topic WebPreferences to one of the StandardColors. <nop>WebPreferences is, as you can guess, a topic which holds all kind of preference setting for each TWiki Web[[ManagingWebs][{*}]]. Each web has its own <nop>WebPreferences, and you can set them differently for each web.
   1.484 +
   1.485 +*How to do it*
   1.486 +
   1.487 +	1 Pick color code from company or product references, the StandardColors table (recommended for 8-bit client compatibility), or some other color reference. 
   1.488 +	2 Go to WebPreferences in each web, and edit the topic.
   1.489 +	3 Set your preferred WEBBGCOLOR preferences variable, and save the topic.
   1.490 +	4 %X% Add a new line immediately after the color code. If there is (invisible) space after the color code, the page header might get strange colors (e.g. black).
   1.491 +
   1.492 +It's just as easy to refine later on, so you're not locked in, just looking better.
   1.493 +
   1.494 +---+++ Set Page Background Color 
   1.495 +
   1.496 +Without getting into the TWikiTemplates system yet, you can easily edit the ==view.tmpl== (in the =templates= directory). In the HTML at the top, the body tag has the page background hardcoded to white ==bgcolor="#ffffff"==. You can change that color value to new variable. First, define a new preferences variable in the site-level  TWikiPreferences, e.g. =* Set =PAGEBGCOLOR = #d0d0d0=, then edit the ==view.tmpl== template file and change ==bgcolor="#ffffff"== to ==bgcolor="%<nop>PAGEBGCOLOR%"==. If you want you can set the page background color individualy per web, simple add a =* Set =PAGEBGCOLOR = #d0d0d0= bullet to the WebPreferences to overload the site-level preferences. (Without font color control, you'll have to stick to light colors.
   1.497 +
   1.498 +---+++ Titles-Only Topic List - WebTopicList
   1.499 +
   1.500 +__A good first navigation tool for new users,__ a fast-loading linked list (page titles only) of a web's topics is a quick and easy way see what's available. By default, slower, but more powerfull WebIndex is used. 
   1.501 +
   1.502 +Without explaining what WEBTOPICLIST is, just try it: 
   1.503 +
   1.504 +	1 Go to WebPreferences in each web, and edit the topic.
   1.505 +	2 In WEBTOPICLIST variable, replace =WebIndex= with =WebTopicList=, and save.
   1.506 +
   1.507 +---+++ Simple way to create %RED% colored text %ENDCOLOR% and graphics
   1.508 +
   1.509 +This should be enabled, see the "Miscellaneous Settings" in the TWikiPreferences, . If not, look at TWiki:TWiki/TWikiPreferences. Look for variables RED, BLUE etc (which define HTML tag FONT). To copy/paste the variables defining the colors you need to see the source text, but =Edit= is disabled. Instead, go to =More= and view the topic in ==raw== format.
   1.510 +
   1.511 +---+++ EZ Graphic Icons to Highlight Text
   1.512 +
   1.513 +Graphics in text (like this: %X%) is done also by defining special variables. See [[TWiki.TWikiPreferences]]. Some may prefer longer names, like =HELP=, =WARN= etc. You can also add your own images, e.g. a =NEW=, or a =ASK= to ask question.
   1.514 +
   1.515 +%T% Using graphic icons to highlight important text right from the start can seriously improve how well new users take to a TWiki site. A minimum set of two or three icons can make content much easier to follow, eye-catching, EXCITING. Research says, people tent not to read pages through, but scan them first - and graphics (used sparringly ;-) of course) can help them.  On *HELP* pages, most people tend to jump around looking for answers rather than reading through - icons help point out the most important bits. 
   1.516 +
   1.517 +*How to create your own set of icons:*
   1.518 +
   1.519 +	1 Go to the ==Preferences== topic: TWikiPreferences for site-wide use, or WebPreferences for use in one web only. 
   1.520 +	2 ==Attach== a graphic (the ones on this page are 16x16 pixels), then define a Preference Variable with a short but recognizable name.
   1.521 +	* __Example:__ Enter =%<nop>TEST%= to get %TEST% - see how it's [[WebPreferences#DefineIcon][done]].
   1.522 +	* %T% Ideas for quick icons: NEW; UPDATE; a STAR or other bullet; key symbols relating to your site content.
   1.523 +	* For documentation and help, this [[%TWIKIWEB%.%HOMETOPIC%][%TWIKIWEB%]] web uses three main icons: %H% for *HELP*, %T% for *TIP*, %X% for *IMPORTANT*. 
   1.524 +	* __Related:__ There are other approaches for creating more extensive TWiki icon libraries. This is a simply and quick way to get started. See TWikiDocGraphics for more info.
   1.525 +
   1.526 +---+++ Use TOC variable to create table of contens
   1.527 +
   1.528 +TOC is Table-Of-Contens, generated automagically from headers (defined like that: ==---++== , see TWikiShorthand).
   1.529 +
   1.530 +For example, you may want to put all your custom variables in TWikiPreferences right on top of the page, and generate table of contens, like:
   1.531 +
   1.532 +	* Preferences for easy creating nice pages 
   1.533 +		* Graphics icons in text 
   1.534 +		* Colored text 
   1.535 +	* System Preferences 
   1.536 +		* Contents of page header and footer 
   1.537 +		* User interface defaults 
   1.538 +		* Email 
   1.539 +		* Plugins 
   1.540 +		* Notes 
   1.541 +
   1.542 +Non-admin users wil be interested only in first part, non-system preferences.
   1.543 +
   1.544 +---
   1.545 +---++ Personal Productivity - Tools and Tips for Working Faster
   1.546 +
   1.547 +Although this area applies to all TWiki set-ups, the initial focus is on TWiki site managers working on a Linux/Apache TWiki site, from a Windows local PC. The assumption being: if you're working with Linux as your desktop, you're probably a programmer or system admin and have these basics handled!
   1.548 +
   1.549 +---+++ Use your favorite text editor for major edits
   1.550 +
   1.551 +When you have a fair bit of TWiki formatting work - for example, compiling new info pages from various cut'n'paste sources, editing multiple TWiki topics or contributed material - it's often easier to use a real *[[TextEditor]]* instead of the browser's text edit box.  There are several methods for doing this.  For Windows, there are several well-recommended text editors.
   1.552 +
   1.553 +__Windows&nbsp;Example:__ [[http://textpad.com][TextPad]] is a low-cost, top flight Windows program, with an extended trial period. You can download from a well-stocked library of user-contributed macros, dictionaries, and syntax and clip files. You can also easily create a TWiki clip collection that allows you to format text with TWiki code: select a text string and click for bold, italic, links, bullet lists - just like a regular HTML editor - and also insert blocks of TWiki code, use simple or regex search and replace, more.
   1.554 +
   1.555 +__Copy&nbsp;&amp;&nbsp;Paste:__ Using the web window this can work very well.  System differences may present difficulties with this method but it is simple and reliable in most cases.
   1.556 +
   1.557 +__Browser&nbsp;Integration:__ Some web browsers can be configured to automatically use an external editor.  See your browser documentation for details.  Such a configuration and a small tool for Linux is described in an example on TWiki.org. TWiki:Codev/EditDaemonWithGVimIntegration
   1.558 +
   1.559 +__Alternate&nbsp;Browser:__ While your main browser might not have the features for TWikic topic editing, another one might.
   1.560 +	* An example on the Linux platform is the =w3m= pager/browser for Linux.  This is a text based version similar to =lynx= but it includes text editor features and a configurable command set to act like =lynx= if you are more accustomed to it.
   1.561 +
   1.562 +---+++ Use SEARCH to Create a personal directory of topics you're involved in
   1.563 +
   1.564 +Here's how you can create your own personal directory of topics you've contributed to recently. Copy the text below (between *Start Copy* and *End Copy*) and paste it into your personal page (%WIKIUSERNAME%). You can add other webs to search by duplicating one of the web subsections and editing the string {web ="webname"} in the search parameters to refer to the specific web you want to search. This script would also work for a group.
   1.565 +
   1.566 +*Start Copy*
   1.567 +<verbatim>
   1.568 +__Here's a list of topics I've been involved in recently:__
   1.569 +
   1.570 +---++++ Codev
   1.571 +
   1.572 +%SEARCH{ "%TOPIC%" web="Codev" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" regex="off" order="modified" reverse="on" limit="20"}%
   1.573 +
   1.574 +---++++ Support
   1.575 +
   1.576 +%SEARCH{ "%TOPIC%" web="Support" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" regex="off" order="modified" reverse="on" limit="20"}%
   1.577 +
   1.578 +---++++ TWiki
   1.579 +
   1.580 +%SEARCH{ "%TOPIC%" web="TWiki" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" regex="off" order="modified" reverse="on" limit="10"}%
   1.581 +</verbatim>
   1.582 +
   1.583 +*End Copy*
   1.584 +
   1.585 +The SEARCH variable has many more formatting options, see TWikiVariables.
   1.586 +
   1.587 +---
   1.588 +---++ Hidden Edit Lock for Individual Topics
   1.589 +
   1.590 +When you're creating main gateway pages, you may want to temporarily (or permanently) restrict editing to yourself or a limited group of people. You can do this with a Preference setting that includes one or more users and groups. Only auhorized users will be able to use ==Edit==.
   1.591 +	* __Example:__ ==Set ALLOWTOPICCHANGE = <nop>%MAINWEB%.UserName, <nop>%MAINWEB%.GroupName==
   1.592 +	* %T% *To hide the setting:* Use HTML comment tags - put ==&lt;!--== on the line _above the setting, and ==--&gt;== on the line below.
   1.593 +	* _This is in the regular help files but worth highlighting._
   1.594 +
   1.595 +---
   1.596 +---++ Change the Default Site Logo !! using TWiki:Codev/HighResolutionLogos.
   1.597 +
   1.598 +Approved and already deployed on several TWiki sites, this logo set provides a professional alternative to the Robot.
   1.599 +
   1.600 +The size of Robot icon is 46x50 pixels - there are countless 48x48 standard-sized, free-use grapics if you're stuck. Here are some decent places to look. Attach the new graphic to TWikiPreferences, and change the WIKILOGOIMG variable. 
   1.601 +
   1.602 +----
   1.603 +---++ Customize Topic Classification Forms
   1.604 +
   1.605 +With a simple one or two-line default topic form available for every topic  - in *Edit* mode, click the ==[Add]== button, and select the form if it isn't alredy enabled. Then, click the title to get to the actual form, ==[Edit]==, and carefully change values, probably basic page classifications. You'll get some increased value, and hands-on experience with TWikiForms, without having to read up about them first. %X% __(add the corresponding search per category - copy a default and change)__
   1.606 +
   1.607 +
   1.608 +---
   1.609 +---++ Add Your Favorite <nop>JavaScript Features
   1.610 +
   1.611 +You're no doubt familiar or better with HTML, JS, and "webmastering". Without getting into the TWikiTemplates system yet, you can easily edit the ==view.tmpl== (in the =templates= directory) for some dramatic effects. The top of the template is mostly regular HTML with some variables. Open up some space in the ==&lt;head&gt;== area, and you can drop in reliable <nop>JavaScripts - a pop-up window script, for example - or tag it as an external script.
   1.612 +
   1.613 +	* %T% Obviously, you can do the same - place a link to an external stylesheet as well. If you set values for standard HTML tags, you can control a good deal of the type size, style and color with out adding CSS tags. __example__
   1.614 +
   1.615 +%X% Depending on what you load up, you may change the overall cross-browser compatibility - however be careful that your site does not look beat up in various other browsers. The scripts you choose will determine compatibility.
   1.616 +
   1.617 +----
   1.618 +
   1.619 +%T% __NOTE:__ Feel free to add your own tips to TWiki:%WEB%.%TOPIC% as quick notes at the end of the list, following the existing format!
   1.620 +
   1.621 +*Contributors:* TWiki:Main.GrantBow, TWiki:Main.LynnwoodBrown, TWiki:Main.MikeMannix, TWiki:Main.PeterMasiar, TWiki:Main.PeterThoeny
   1.622 +@