592 lines
36 KiB
Plaintext
592 lines
36 KiB
Plaintext
|
head 1.6;
|
||
|
access;
|
||
|
symbols;
|
||
|
locks; strict;
|
||
|
comment @# @;
|
||
|
|
||
|
|
||
|
1.6
|
||
|
date 2007.01.16.04.11.57; author TWikiContributor; state Exp;
|
||
|
branches;
|
||
|
next 1.5;
|
||
|
|
||
|
1.5
|
||
|
date 2006.04.01.05.55.07; author TWikiContributor; state Exp;
|
||
|
branches;
|
||
|
next 1.4;
|
||
|
|
||
|
1.4
|
||
|
date 2006.02.01.12.01.17; author TWikiContributor; state Exp;
|
||
|
branches;
|
||
|
next 1.3;
|
||
|
|
||
|
1.3
|
||
|
date 2004.08.22.21.54.31; author PeterThoeny; state Exp;
|
||
|
branches;
|
||
|
next 1.2;
|
||
|
|
||
|
1.2
|
||
|
date 2004.08.15.05.33.44; author PeterThoeny; state Exp;
|
||
|
branches;
|
||
|
next 1.1;
|
||
|
|
||
|
1.1
|
||
|
date 2003.01.31.09.03.58; author PeterThoeny; state Exp;
|
||
|
branches;
|
||
|
next ;
|
||
|
|
||
|
|
||
|
desc
|
||
|
@none
|
||
|
@
|
||
|
|
||
|
|
||
|
1.6
|
||
|
log
|
||
|
@buildrelease
|
||
|
@
|
||
|
text
|
||
|
@%META:TOPICINFO{author="TWikiContributor" date="1163619832" format="1.0" version="6"}%
|
||
|
---+!! Instant TWiki Site Enhancements
|
||
|
|
||
|
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.
|
||
|
|
||
|
Many of these tips are based on setting some special TWikiVariables.
|
||
|
|
||
|
%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.
|
||
|
|
||
|
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.
|
||
|
|
||
|
%TOC%
|
||
|
|
||
|
---
|
||
|
---++ Tips using TWiki Variables
|
||
|
|
||
|
TWikiVariables are a great resource to customize your site. You need to know the variable name and decide where to put it.
|
||
|
|
||
|
---+++ Change Colors of Page Header/Footer
|
||
|
|
||
|
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.
|
||
|
|
||
|
*What we are doing*
|
||
|
|
||
|
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.
|
||
|
|
||
|
*How to do it*
|
||
|
|
||
|
1 Pick color code from company or product references, the StandardColors table (recommended for 8-bit client compatibility), or some other color reference.
|
||
|
2 Go to WebPreferences in each web, and edit the topic.
|
||
|
3 Set your preferred WEBBGCOLOR preferences variable, and save the topic.
|
||
|
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).
|
||
|
|
||
|
It's just as easy to refine later on, so you're not locked in, just looking better.
|
||
|
|
||
|
---+++ Set Page Background Color
|
||
|
|
||
|
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.)
|
||
|
|
||
|
---+++ Titles-Only Topic List - !WebTopicList
|
||
|
|
||
|
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.
|
||
|
|
||
|
Without explaining what WEBTOPICLIST is, just try it:
|
||
|
|
||
|
1 Go to WebPreferences in each web, and edit the topic.
|
||
|
2 In WEBTOPICLIST variable, replace =WebIndex= with =WebTopicList=, and save.
|
||
|
|
||
|
---+++ Simple way to create %RED% colored text %ENDCOLOR% and graphics
|
||
|
|
||
|
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.
|
||
|
|
||
|
---+++ EZ Graphic Icons to Highlight Text
|
||
|
|
||
|
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.
|
||
|
|
||
|
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"}%.
|
||
|
|
||
|
*Creating image variables*
|
||
|
|
||
|
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%]].)
|
||
|
|
||
|
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.
|
||
|
|
||
|
For instance, if we want to write =%<nop>DOWN%= instead of =%<nop>ICON{"arrowbdown"}%=, define the new variable like this:
|
||
|
<verbatim>
|
||
|
* Set DOWN = %ICON{"arrowbdown"}%
|
||
|
</verbatim>
|
||
|
Or if you have a custom image to use, attach this to [[%LOCALSITEPREFS%]] and write:
|
||
|
<verbatim>
|
||
|
* Set DOWN = <img src="%ATTACHURL%/my_image.gif" border="0" alt="DOWN" width="16" height="16" />
|
||
|
</verbatim>
|
||
|
|
||
|
Most images in TWikiDocGraphics are 16 x 16 pixels.
|
||
|
|
||
|
* __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.
|
||
|
|
||
|
---+++ Use TOC variable to create table of content
|
||
|
|
||
|
TOC is Table-Of-Content, generated automagically from headers (defined like that: ==---++== , see TWikiShorthand).
|
||
|
|
||
|
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:
|
||
|
|
||
|
* Preferences for easy creating nice pages
|
||
|
* Graphics icons in text
|
||
|
* Colored text
|
||
|
* System Preferences
|
||
|
* Contents of page header and footer
|
||
|
* User interface defaults
|
||
|
* Email
|
||
|
* Plugins
|
||
|
* Notes
|
||
|
|
||
|
Non-admin users wil be interested only in first part, non-system preferences.
|
||
|
|
||
|
---
|
||
|
---++ Personal Productivity - Tools and Tips for Working Faster
|
||
|
|
||
|
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!
|
||
|
|
||
|
---+++ Use your favorite text editor for major edits
|
||
|
|
||
|
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.
|
||
|
|
||
|
__Windows 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.
|
||
|
|
||
|
__Copy & 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.
|
||
|
|
||
|
__Browser 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
|
||
|
|
||
|
__Alternate Browser:__ While your main browser might not have the features for TWiki topic editing, another one might.
|
||
|
* 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.
|
||
|
|
||
|
---++ Ready to use SEARCH
|
||
|
|
||
|
---+++ Personal directory of topics you're involved in
|
||
|
|
||
|
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.
|
||
|
|
||
|
*Start Copy*
|
||
|
<verbatim>
|
||
|
__Here's a list of topics I've been involved in recently:__
|
||
|
|
||
|
---++++ Codev
|
||
|
|
||
|
%SEARCH{ "%TOPIC%" web="Codev" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="20"}%
|
||
|
---++++ Support
|
||
|
|
||
|
%SEARCH{ "%TOPIC%" web="Support" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="20"}%
|
||
|
|
||
|
---++++ TWiki
|
||
|
|
||
|
%SEARCH{ "%TOPIC%" web="TWiki" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="10"}%
|
||
|
|
||
|
</verbatim>
|
||
|
*End Copy*
|
||
|
|
||
|
The SEARCH variable has many more formatting options, see TWikiVariables.
|
||
|
|
||
|
---+++ Recently changed pages
|
||
|
Here are the last 15 changed pages, formatted into a neat table.
|
||
|
|
||
|
<verbatim>
|
||
|
<table>
|
||
|
%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" }%
|
||
|
</table>
|
||
|
</verbatim>
|
||
|
|
||
|
---
|
||
|
---++ Hidden Edit Lock for Individual Topics
|
||
|
|
||
|
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==.
|
||
|
* __Example:__ ==Set ALLOWTOPICCHANGE = <nop>%MAINWEB%.UserName, <nop>%MAINWEB%.GroupName==
|
||
|
* %T% *To hide the setting:* Use HTML comment tags - put ==<!--== on the line _above the setting, and ==-->== on the line below.
|
||
|
|
||
|
---
|
||
|
---++ Change the Default Logo
|
||
|
|
||
|
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:
|
||
|
* =Set WEBLOGONAME = filename.gif=
|
||
|
|
||
|
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)
|
||
|
|
||
|
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.,
|
||
|
* =Set WEBLOGOIMG = %<nop>PUBURLPATH%/%MAINWEB%/WebPreferences/mylogo.gif=
|
||
|
|
||
|
----
|
||
|
---++ Customize Topic Classification Forms
|
||
|
|
||
|
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)__
|
||
|
|
||
|
|
||
|
---
|
||
|
---++ Add Your Favorite <nop>JavaScript Features
|
||
|
|
||
|
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 ==<head>== area, and you can drop in reliable <nop>JavaScripts - a pop-up window script, for example - or tag it as an external script.
|
||
|
|
||
|
* %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__
|
||
|
|
||
|
%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.
|
||
|
|
||
|
---
|
||
|
---++ Customize The Left Navigation Bar
|
||
|
|
||
|
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.)
|
||
|
|
||
|
----
|
||
|
%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!
|
||
|
|
||
|
__Related Topics:__ AdminDocumentationCategory
|
||
|
|
||
|
-- __Contributors:__ TWiki:Main.GrantBow, TWiki:Main.LynnwoodBrown, TWiki:Main.MikeMannix, TWiki:Main.PeterMasiar, TWiki:Main.PeterThoeny, TWiki:Main.MattWilkie, TWiki:Main.AmandaSmith
|
||
|
@
|
||
|
|
||
|
|
||
|
1.5
|
||
|
log
|
||
|
@buildrelease
|
||
|
@
|
||
|
text
|
||
|
@d1 1
|
||
|
a1 1
|
||
|
%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="5"}%
|
||
|
d145 1
|
||
|
a145 1
|
||
|
%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.4
|
||
|
log
|
||
|
@buildrelease
|
||
|
@
|
||
|
text
|
||
|
@d1 1
|
||
|
a1 1
|
||
|
%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="4"}%
|
||
|
d29 4
|
||
|
a32 4
|
||
|
1 Pick color code from company or product references, the StandardColors table (recommended for 8-bit client compatibility), or some other color reference.
|
||
|
2 Go to WebPreferences in each web, and edit the topic.
|
||
|
3 Set your preferred WEBBGCOLOR preferences variable, and save the topic.
|
||
|
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).
|
||
|
d46 2
|
||
|
a47 2
|
||
|
1 Go to WebPreferences in each web, and edit the topic.
|
||
|
2 In WEBTOPICLIST variable, replace =WebIndex= with =WebTopicList=, and save.
|
||
|
d57 1
|
||
|
a57 1
|
||
|
%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"}%.
|
||
|
d67 1
|
||
|
a67 1
|
||
|
* Set DOWN = %ICON{"arrowbdown"}%
|
||
|
d71 1
|
||
|
a71 1
|
||
|
* Set DOWN = <img src="%ATTACHURL%/my_image.gif" border="0" alt="DOWN" width="16" height="16" />
|
||
|
d74 1
|
||
|
a74 1
|
||
|
Most images in %TWIKIWEB%.TWikiDocGraphics are 16 x 16 pixels.
|
||
|
d76 1
|
||
|
a76 1
|
||
|
* __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.
|
||
|
d84 9
|
||
|
a92 9
|
||
|
* Preferences for easy creating nice pages
|
||
|
* Graphics icons in text
|
||
|
* Colored text
|
||
|
* System Preferences
|
||
|
* Contents of page header and footer
|
||
|
* User interface defaults
|
||
|
* Email
|
||
|
* Plugins
|
||
|
* Notes
|
||
|
d112 1
|
||
|
a112 1
|
||
|
* 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.
|
||
|
d153 2
|
||
|
a154 2
|
||
|
* __Example:__ ==Set ALLOWTOPICCHANGE = <nop>%MAINWEB%.UserName, <nop>%MAINWEB%.GroupName==
|
||
|
* %T% *To hide the setting:* Use HTML comment tags - put ==<!--== on the line _above the setting, and ==-->== on the line below.
|
||
|
d160 1
|
||
|
a160 1
|
||
|
* =Set WEBLOGONAME = filename.gif=
|
||
|
d164 2
|
||
|
a165 2
|
||
|
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.,
|
||
|
* =Set WEBLOGOIMG = %<nop>PUBURLPATH%/%TWIKIWEB%/WebPreferences/mylogo.gif=
|
||
|
d178 1
|
||
|
a178 1
|
||
|
* %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.3
|
||
|
log
|
||
|
@none
|
||
|
@
|
||
|
text
|
||
|
@d1 1
|
||
|
a1 1
|
||
|
%META:TOPICINFO{author="PeterThoeny" date="1093211669" format="1.0" version="1.3"}%
|
||
|
d4 1
|
||
|
a4 1
|
||
|
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.
|
||
|
d8 1
|
||
|
a8 1
|
||
|
%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.
|
||
|
d10 1
|
||
|
a10 1
|
||
|
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.
|
||
|
d15 1
|
||
|
a15 1
|
||
|
---++ Tips using TWikiVariables
|
||
|
d17 1
|
||
|
a17 1
|
||
|
You need to know what is the variable name, and in what page is/should be defined.
|
||
|
d38 1
|
||
|
a38 1
|
||
|
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.
|
||
|
d40 1
|
||
|
a40 1
|
||
|
---+++ Titles-Only Topic List - WebTopicList
|
||
|
d42 1
|
||
|
a42 1
|
||
|
__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.
|
||
|
d55 1
|
||
|
a55 1
|
||
|
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.
|
||
|
d57 1
|
||
|
a57 1
|
||
|
%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.
|
||
|
d59 1
|
||
|
a59 1
|
||
|
*How to create your own set of icons:*
|
||
|
d61 16
|
||
|
a76 6
|
||
|
1 Go to the ==Preferences== topic: TWikiPreferences for site-wide use, or WebPreferences for use in one web only.
|
||
|
2 ==Attach== a graphic (the ones on this page are 16x16 pixels), then define a Preference Variable with a short but recognizable name.
|
||
|
* __Example:__ Enter =%<nop>TEST%= to get %TEST% - see how it's [[WebPreferences#DefineIcon][done]].
|
||
|
* %T% Ideas for quick icons: NEW; UPDATE; a STAR or other bullet; key symbols relating to your site content.
|
||
|
* For documentation and help, this [[%TWIKIWEB%.%HOMETOPIC%][%TWIKIWEB%]] web uses three main icons: %H% for *HELP*, %T% for *TIP*, %X% for *IMPORTANT*.
|
||
|
* __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.
|
||
|
d82 1
|
||
|
a82 1
|
||
|
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:
|
||
|
d99 1
|
||
|
a99 1
|
||
|
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!
|
||
|
d111 1
|
||
|
a111 1
|
||
|
__Alternate Browser:__ While your main browser might not have the features for TWikic topic editing, another one might.
|
||
|
d141 1
|
||
|
a141 1
|
||
|
Here, last 15 is formatted into neat table.
|
||
|
a154 1
|
||
|
* _This is in the regular help files but worth highlighting._
|
||
|
d157 4
|
||
|
a160 1
|
||
|
---++ Change the Default Site Logo
|
||
|
d162 4
|
||
|
a165 2
|
||
|
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.
|
||
|
* =Set WIKILOGOIMG = %<nop>PUBURL%/%TWIKIWEB%/MyLogo/mylogo.gif=
|
||
|
d170 1
|
||
|
a170 1
|
||
|
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)__
|
||
|
d182 5
|
||
|
a187 1
|
||
|
|
||
|
d190 1
|
||
|
a190 1
|
||
|
*Contributors:* TWiki:Main.GrantBow, TWiki:Main.LynnwoodBrown, TWiki:Main.MikeMannix, TWiki:Main.PeterMasiar, TWiki:Main.PeterThoeny, TWiki:Main.MattWilkie
|
||
|
d192 1
|
||
|
@
|
||
|
|
||
|
|
||
|
1.2
|
||
|
log
|
||
|
@none
|
||
|
@
|
||
|
text
|
||
|
@d1 1
|
||
|
a1 1
|
||
|
%META:TOPICINFO{author="PeterThoeny" date="1092548024" format="1.0" version="1.2"}%
|
||
|
d134 3
|
||
|
a136 3
|
||
|
<font size="-1"><table>
|
||
|
%SEARCH{ "\.*" scope="topic" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" format="<tr><td> [[$topic]] </td><td> $wikiusername </td><td> $date </td></tr>" limit="15" }%
|
||
|
</table></font>
|
||
|
@
|
||
|
|
||
|
|
||
|
1.1
|
||
|
log
|
||
|
@none
|
||
|
@
|
||
|
text
|
||
|
@d1 173
|
||
|
a173 163
|
||
|
%META:TOPICINFO{author="PeterThoeny" date="1044003838" format="1.0" version="1.1"}%
|
||
|
---+!! Instant TWiki Site Enhancements
|
||
|
|
||
|
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.
|
||
|
|
||
|
Many of these tips are based on setting some special TWikiVariables.
|
||
|
|
||
|
%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.
|
||
|
|
||
|
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.
|
||
|
|
||
|
%TOC%
|
||
|
|
||
|
---
|
||
|
---++ Tips using TWikiVariables
|
||
|
|
||
|
You need to know what is the variable name, and in what page is/should be defined.
|
||
|
|
||
|
---+++ Change Colors of Page Header/Footer
|
||
|
|
||
|
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.
|
||
|
|
||
|
*What we are doing*
|
||
|
|
||
|
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.
|
||
|
|
||
|
*How to do it*
|
||
|
|
||
|
1 Pick color code from company or product references, the StandardColors table (recommended for 8-bit client compatibility), or some other color reference.
|
||
|
2 Go to WebPreferences in each web, and edit the topic.
|
||
|
3 Set your preferred WEBBGCOLOR preferences variable, and save the topic.
|
||
|
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).
|
||
|
|
||
|
It's just as easy to refine later on, so you're not locked in, just looking better.
|
||
|
|
||
|
---+++ Set Page Background Color
|
||
|
|
||
|
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.
|
||
|
|
||
|
---+++ Titles-Only Topic List - WebTopicList
|
||
|
|
||
|
__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.
|
||
|
|
||
|
Without explaining what WEBTOPICLIST is, just try it:
|
||
|
|
||
|
1 Go to WebPreferences in each web, and edit the topic.
|
||
|
2 In WEBTOPICLIST variable, replace =WebIndex= with =WebTopicList=, and save.
|
||
|
|
||
|
---+++ Simple way to create %RED% colored text %ENDCOLOR% and graphics
|
||
|
|
||
|
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.
|
||
|
|
||
|
---+++ EZ Graphic Icons to Highlight Text
|
||
|
|
||
|
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.
|
||
|
|
||
|
%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.
|
||
|
|
||
|
*How to create your own set of icons:*
|
||
|
|
||
|
1 Go to the ==Preferences== topic: TWikiPreferences for site-wide use, or WebPreferences for use in one web only.
|
||
|
2 ==Attach== a graphic (the ones on this page are 16x16 pixels), then define a Preference Variable with a short but recognizable name.
|
||
|
* __Example:__ Enter =%<nop>TEST%= to get %TEST% - see how it's [[WebPreferences#DefineIcon][done]].
|
||
|
* %T% Ideas for quick icons: NEW; UPDATE; a STAR or other bullet; key symbols relating to your site content.
|
||
|
* For documentation and help, this [[%TWIKIWEB%.%HOMETOPIC%][%TWIKIWEB%]] web uses three main icons: %H% for *HELP*, %T% for *TIP*, %X% for *IMPORTANT*.
|
||
|
* __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.
|
||
|
|
||
|
---+++ Use TOC variable to create table of contens
|
||
|
|
||
|
TOC is Table-Of-Contens, generated automagically from headers (defined like that: ==---++== , see TWikiShorthand).
|
||
|
|
||
|
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:
|
||
|
|
||
|
* Preferences for easy creating nice pages
|
||
|
* Graphics icons in text
|
||
|
* Colored text
|
||
|
* System Preferences
|
||
|
* Contents of page header and footer
|
||
|
* User interface defaults
|
||
|
* Email
|
||
|
* Plugins
|
||
|
* Notes
|
||
|
|
||
|
Non-admin users wil be interested only in first part, non-system preferences.
|
||
|
|
||
|
---
|
||
|
---++ Personal Productivity - Tools and Tips for Working Faster
|
||
|
|
||
|
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!
|
||
|
|
||
|
---+++ Use your favorite text editor for major edits
|
||
|
|
||
|
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.
|
||
|
|
||
|
__Windows 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.
|
||
|
|
||
|
__Copy & 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.
|
||
|
|
||
|
__Browser 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
|
||
|
|
||
|
__Alternate Browser:__ While your main browser might not have the features for TWikic topic editing, another one might.
|
||
|
* 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.
|
||
|
|
||
|
---+++ Use SEARCH to Create a personal directory of topics you're involved in
|
||
|
|
||
|
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.
|
||
|
|
||
|
*Start Copy*
|
||
|
<verbatim>
|
||
|
__Here's a list of topics I've been involved in recently:__
|
||
|
|
||
|
---++++ Codev
|
||
|
|
||
|
%SEARCH{ "%TOPIC%" web="Codev" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" regex="off" order="modified" reverse="on" limit="20"}%
|
||
|
|
||
|
---++++ Support
|
||
|
|
||
|
%SEARCH{ "%TOPIC%" web="Support" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" regex="off" order="modified" reverse="on" limit="20"}%
|
||
|
|
||
|
---++++ TWiki
|
||
|
|
||
|
%SEARCH{ "%TOPIC%" web="TWiki" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" regex="off" order="modified" reverse="on" limit="10"}%
|
||
|
</verbatim>
|
||
|
|
||
|
*End Copy*
|
||
|
|
||
|
The SEARCH variable has many more formatting options, see TWikiVariables.
|
||
|
|
||
|
---
|
||
|
---++ Hidden Edit Lock for Individual Topics
|
||
|
|
||
|
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==.
|
||
|
* __Example:__ ==Set ALLOWTOPICCHANGE = <nop>%MAINWEB%.UserName, <nop>%MAINWEB%.GroupName==
|
||
|
* %T% *To hide the setting:* Use HTML comment tags - put ==<!--== on the line _above the setting, and ==-->== on the line below.
|
||
|
* _This is in the regular help files but worth highlighting._
|
||
|
|
||
|
---
|
||
|
---++ Change the Default Site Logo !! using TWiki:Codev/HighResolutionLogos.
|
||
|
|
||
|
Approved and already deployed on several TWiki sites, this logo set provides a professional alternative to the Robot.
|
||
|
|
||
|
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.
|
||
|
|
||
|
----
|
||
|
---++ Customize Topic Classification Forms
|
||
|
|
||
|
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)__
|
||
|
|
||
|
|
||
|
---
|
||
|
---++ Add Your Favorite <nop>JavaScript Features
|
||
|
|
||
|
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 ==<head>== area, and you can drop in reliable <nop>JavaScripts - a pop-up window script, for example - or tag it as an external script.
|
||
|
|
||
|
* %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__
|
||
|
|
||
|
%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.
|
||
|
|
||
|
----
|
||
|
|
||
|
%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!
|
||
|
|
||
|
*Contributors:* TWiki:Main.GrantBow, TWiki:Main.LynnwoodBrown, TWiki:Main.MikeMannix, TWiki:Main.PeterMasiar, TWiki:Main.PeterThoeny
|
||
|
@
|