My Links
Pending Changes
ok so twiki 4.2 has
TinyMCE already, so lets go the whole hog
rough set up from svn above
- create apache.conf for individual sites
- amend /var/www/twiki/lin/LocalSite.cfg
- create and cd to twiki dir under vhost /var/www/domain.com/twiki
- cp -prL /var/www/twiki/data .
- cp -prL /var/www/twiki/pub .
Files to move
- TWikiRegistration, NewUserTemplate , UserForm, ResetPassword, ChangePassword, ChangeEmailAddress
Doubtful if Setting %SYSTEMWEB% = Main is likely to be a good idea
- Would need to move TWiki.WebTopBar, TWiki.WebLeftBarWebsList, TWiki.WebBottomBar and the rest DocGraphics css js etc
Dirs/Webs (from full svn) to delete/disable ? ...
On the fly templates is a tad messy (what is the diff/purpose of
TemplateDir and/or
TenmplatePath)...
- mkdir templates
- cd templates/
- cp -prL /var/www/twiki/templates/*.nat.* .
then ...
- vi /var/www/twiki/lib/LocalSite.cfg
insert (?)...
- $TWiki::cfg{TemplatePath} = $TWiki::cfg{TemplateDir}.'/$web/$name.$skin.tmpl, ' . $TWiki::cfg{TemplateDir}. '/$name.$skin.tmpl, /var/www/twiki/templates/$web/$name.$skin.tmpl, /var/www/twiki/templates/$name.$skin.tmpl, /var/www/twiki/templates/$web/$name.tmpl, /var/www/twiki/templates/$name.tmpl, $web.$skinSkin$nameTemplate, TWiki.$skinSkin$nameTemplate, $web.$nameTemplate, TWiki.$nameTemplate';
Dodgy but effective?
- cat TWiki.tmp/TWikiPreferences.txt >> Main/TWikiPreferences.txt
Gotchas
Useful
remove .svn folders
- find . -name ".svn" -exec rm -rf {} \;
Final (?) Install Thoughts
Its a prerequisite of the site that I'm building at the moment that the site be archivable (maybe dynamic, maybe cd etc). Another issue is that it run on a VPS. The later very obviously slows with disk access. So it seemed that twiki was running slowly due to this (e.g. the massive amount of files in an svn checkout and related symlinks). So since we're still on release candidates and the site must go live I decided to give the nightly builds a try instead so as to extract them under the virtual hosts directory tree. Although one set of libs and multiple hosts (data + pub) would be ideal it's still a tad too messy in my opinion. So far so good twiki seems to bemuch more responsive.
Rough summary directory structure for : /var/vhostA/twiki
Extract nightly build into sub dir and mix and match via symlinks to distro as per below:
. |-- bin -> twiki/TWiki-4.2.0-rc2-auto16187/bin/ |-- data | |-- Main | | `-- Etc.txt | |-- TWiki -> ../twiki/TWiki-4.2.0-rc2-auto16187/data/TWiki | `-- SiteWebs ... | |-- lib -> twiki/TWiki-4.2.0-rc2-auto16187/lib/ |-- locale -> twiki/TWiki-4.2.0-rc2-auto16187/locale |-- pub | |-- TWiki -> ../twiki/TWiki-4.2.0-rc2-auto16187/pub/TWiki | `-- SiteWebs ... | |-- templates | `-- site.specific.templates.tmpl | |-- twiki-distros | |-- TWiki-4.2.0-rc2-auto16187 | | `-- etc | `-- TWiki-4.2.0-rc2-auto16187.zip `-- working -> twiki/TWiki-4.2.0-rc2-auto16187/working
Site Specific Customisations
Create lib/LocalSite.cfg roughly as per above
Hide TWiki dir from public view as it only serves to confuse. E.g.
how or
what a site is run should be irrelevant to the user
libdata/TWiki/WebPreferences.txt
* Set NOSEARCHALL = on * Set ALLOWWEBVIEW =
TWikiAdminGroup
Orig
Personal Preferences (details in TWikiVariables)
- Horizontal size of text edit box:
- Vertical size of text edit box:
- Style of text edit box.
width: 99%
for full window width (default), width: auto
to disable.
- Set EDITBOXSTYLE = width: 99%
- Optionally write protect your home page: (set it to your WikiName)
Related topics