Changeset 485 for trunk/core/data/TWiki/InstantEnhancements.txt
- Timestamp:
- 11/09/08 16:04:28 (4 years ago)
- File:
-
- 1 edited
-
trunk/core/data/TWiki/InstantEnhancements.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/data/TWiki/InstantEnhancements.txt
r482 r485 36 36 ---+++ Set Page Background Color 37 37 38 Without getting into the TWikiTemplatessystem 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.)38 Without getting into the [[presentation templates]] 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.) 39 39 40 40 ---+++ Titles-Only Topic List - !WebTopicList … … 174 174 ---++ Add Your Favorite <nop>JavaScript Features 175 175 176 You're no doubt familiar or better with HTML, JS, and "webmastering". Without getting into the TWikiTemplatessystem 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 ==<head>== area, and you can drop in reliable <nop>JavaScripts - a pop-up window script, for example - or tag it as an external script.176 You're no doubt familiar or better with HTML, JS, and "webmastering". Without getting into the [[presentation templates]] 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 ==<head>== area, and you can drop in reliable <nop>JavaScripts - a pop-up window script, for example - or tag it as an external script. 177 177 178 178 * %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__
Note: See TracChangeset
for help on using the changeset viewer.
