Version 11 of Wikit web change + div tag css style

Updated 2007-02-19 22:36:12

This page deals with a small modification of web.tcl file from wikit.kit starkit.

I've modified the current wikit.kit (2007/02) to fit my need.

I wish to have my home page, css styled, looks like the one from Sveinbjorn home page [L1 ].

I've slightly modified wikit.kit in order to add <div class="content"> tag. Here is the diff output from original web.tcl :

Similarly I modified mypage.tcl and .tml on TclHttpd distribution.

 80a81,88
 > proc Wikit::cgi_body_div {args} {
 >       cgi_body {
 >               cgi_division class="content" {
 >                       uplevel 1 [lindex $args end]
 >               }
 >       }
 > }
 > 
 396c404
 <         cgi_body bgcolor=#ffffff {
 ---
 >         cgi_body_div {
 451c459
 <         cgi_body bgcolor=#ffffff {
 ---
 >         cgi_body_div {
 489c497
 <         cgi_body bgcolor=#ffffff {
 --- 
 >         cgi_body_div {

The resulting page is : http://82.229.198.189/cgi-bin/wiki.cgi/0

Here is the standard dynamic cgi-bin use of wikit.kit. Here is the wiki.cgi script file :

 #!/bin/sh
 #
 # Script to invoke the tclkit wiki
 # 
 WIKIT_BASE="http://82.229.198.189/cgi-bin/wiki.cgi/"
 export WIKIT_BASE 
 WIKIT_CSS="http://82.229.198.189/styles/dynamic.css"
 export WIKIT_CSS
 WIKIT_EMAIL="[email protected]"
 export WIKIT_EMAIL

 if [ ! -f .../tclkit ]; then
  echo "wiki.cgi not configured"
  exit 0 
 fi
 exec .../tclkit .../wikit.kit .../rouge39.tkd

LGT


Category Wikit