|
|
|
|
Instant Site EnhancementsThese quick enhancements are aimed at improving and customising your Foswiki. New site administrators are especially encouraged to review this document for ideas before deploying a new site. 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 preferences. 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 can be found in Foswiki:Support.SupplementalDocuments.On this page:
Tips using Preference SettingsPreference settings can be redefined and are a great resource to customize your site. You need to know the preference name and decide where to put it.Change Colors of Page Header/FooterIncredibly obvious, maybe, but some 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 the preference WEBBGCOLOR in topic WebPreferences to one of the StandardColors. WebPreferences is, as you can guess, a topic which holds all kind of preference settings for each Web{*}. Each web has its own WebPreferences, and you can set them differently for each web. How to do it
Set Page Background ColorWithout getting into the skin templates system yet, you can easily edit theview.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 a new setting. First, define a newpreference setting in the site-level Main.SitePreferences, e.g. * Set =PAGEBGCOLOR = #d0d0d0 , then edit the view.tmpl template file and change bgcolor="#ffffff" to bgcolor="%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 - WebTopicListWebTopicList 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:
Simple way to create colored text and graphicsThis should be enabled, see the "Miscellaneous Settings" in the DefaultPreferences. Look for the settings RED, BLUE etc (which define HTML tag FONT). To copy/paste the definitions of the colors you need to see the source text, butEdit is disabled. Instead, view the topic in raw format (if your skin has no button for this, type "?raw=on" at the end of the URL).
EZ Graphic Icons to Highlight TextIcons 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. DocumentGraphics has a whole collection of ready icon images. You can use these images in any topic by referring to their name. For example, DocumentGraphics has an image attachment calleddays.gif . To show this image in a topic, write %ICON{"days"}% to get .
Creating image macros
You may find it easier to write shorthand graphic notation. You can create your own image macros by defining them in a preference topic (most likely Main.DefaultPreferences?.)
A macro 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 %DOWN% instead of %ICON{"arrowbdown"}% , define the new macro like this:
* Set DOWN = %ICON{"arrowbdown"}%Or if you have a custom image to use, attach this to Main.SitePreferences and write: * Set DOWN = <img src="%ATTACHURL%/my_image.gif" border="0" alt="DOWN" width="16" height="16" />Most images in DocumentGraphics are 16 x 16 pixels.
Use TOC macro to create table of contentTOC is Table-Of-Content, generated automagically from headers (defined like that:---++ , see ShortHand).
For example, you may want to put all your custom settings in Main.SitePreferences right on top of the page, and generate table of contents, like:
Personal Productivity - Tools and Tips for Working FasterAlthough this area applies to all setups, the initial focus is on site managers working on a Linux/Apache 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 editsWhen you have a fair bit of formatting work - for example, compiling new info pages from various cut'n'paste sources, editing multiple 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: 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 clip collection that allows you to format text with TML code: select a text string and click for bold, italic, links, bullet lists - just like a regular HTML editor - and also insert blocks of TML 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. Alternate Browser: While your main browser might not have the features for topic editing, another one might.
Ready to use SEARCHPersonal directory of topics you're involved inHere'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 (WikiGuest). 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*Here's a list of topics I've been involved in recently:* ---++++ Project Web %SEARCH{ "%TOPIC%" web="Project" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="20"}%End Copy The SEARCH macro has many more formatting options. Recently changed pagesHere are the last 15 changed pages, formatted into a neat table.<table> %SEARCH{ "'1'" scope="topic" type="query" nosearch="on" nototal="on" order="modified" reverse="on" format="<tr><td> [[$topic][$topic]] </td><td> $wikiusername </td><td> $date </td></tr>" limit="15" }% </table> Hidden Edit Lock for Individual TopicsWhen 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 useEdit .
Change the Default LogoIf you want to change the logo per web, simply attach a new logo.gif to the web's WebPreferences, and change the logo's filename by overriding the name using WEBLOGONAME in WebPreferences:
WEBLOGOIMG , WEBLOGOURL , and WEBLOGOALT (they mirror the WIKILOGO* macros, but are applied to each web, rather than to the %WIKITOOLNAME%-based references)
If you'd like to have the same customised logo for all the webs, make these changes in SitePreferences instead of each web's WebPreferences, e.g.,
Customize Topic Classification FormsWith 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 DataForms, without having to read up about them first. (add the corresponding search per category - copy a default and change)
Add Your Favorite JavaScript FeaturesYou're no doubt familiar or better with HTML, JS, and "webmastering". Without getting into the skin templates system yet, you can easily edit theview.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 macros. Open up some space in the <head> area, and you can drop in reliable JavaScripts - a pop-up window script, for example - or tag it as an external script.
Customize The Left Navigation BarCustomize 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.)Related Topics: AdminDocumentationCategory |