Tags:
archive_me1Add my vote for this tag create new tag
, view all tags

Bug: Use %HOMETOPIC% not WebHome

In the supplied TWiki docs, all references to WebHome should refer to %HOMETOPIC%, in order to be consistent with user settings, to avoid confusing end users. With a default TWiki install the number of instances the word "WebHome" is used is significantly > 0.

How to Fix

Needs to be applied just the once probably, preferably by someone with admin rights smile

# grep -i WebHome */*|cut -d: -f1|while read i; do mv $i $i.old; sed -e "s/WebHome/%HOMETOPIC%/g" $i.old >$i; rm $i.old; done

It could be done manually if necessary of course...

Test case

# mkdir unpack
# cd unpack
# tar zxvf ../$TWIKITARBALL 
# cd data
# grep WebHome */* |wc -l

This should come back with 0 on a "just installed" TWiki Server, if the docs are to be consistent with user settings (and hence not confuse users).

Environment

TWiki version: All Versions (Feb 03, Dec 01, Sep 09, Dec 2000, Earlier
TWiki plugins: na
Server OS: na
Web server: na
Perl version: na
Client OS: na
Web Browser: na

-- MichaelSparks - 06 Jun 2003

Follow up

Not strictly speaking a patch, but provides a script/commandline as to how to fix this.

Category: TWikiPatches

Fix record

I went for the manual fix for two reasons. I do not have root access at SF to run the script with the proper user and there is meta data with parent pointing to WebHome. Changing the parent to the variable needs to be tested, e.g. there might be some issues.

-- PeterThoeny - 26 Jul 2003

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2003-10-19 - WillNorris
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.