Tags:
create new tag
, view all tags

Question

As I am planning to rename my TWiki's MAIN Web, I have edited templates/edit.tmpl (and edit.iejs.tmpl - whatis that for?) to produce the signature which instead of offering a hardcoded Main.MyTWikiName to offer Main.MyTWikiName:

The change is simple:

Change

<br /> <b>-- %WIKIUSERNAME% - %DATE%</b> &nbsp;&nbsp;<code>&lt;==</code>
to
<br /> <b>-- %<nop>MAINWEB%.%WIKINAME% - %DATE%</b> &nbsp;&nbsp;<code>&lt;==</code> 

I also changed the %WIKIUSERNAME% to %MAINWEB%.%WIKINAME% in the WebTopicEditTemplate to get the same effect there.

Does anyone see any problems with this change?

Are there any other places I should make similar changes?

  • TWiki version: 01 Dec 2001
  • Perl version:
  • Web server & version: apache 1.3
  • Server OS: Linux
  • Web browser & version: Opera
  • Client OS: Linux

-- MathiasKoerber - 28 Dec 2002

Answer

You do not need to change the signature in the template file, change the $mainWebname setting in TWiki.cfg. You also need to change all occurances of Main.[A-Z] to Newname.[A-Z] in all your topics.

-- PeterThoeny - 31 Dec 2002

Followup

Sorry, but that was clear. I meant this change to in the first place avoid the use of hardcoded Main. or Newname. in signatures etc, so that a change can become much easier. Shoud use of %MAINWEB%. not be standard rather than shipping TWiki with Main. ?

Happy New Year

-- MathiasKoerber - 01 Jan 2003

Comment

Thanks Mathias, that was exactly what I was asking myself ... your post saved me some time since I didn't have to figure it out myself! But I still have a problem with the WebTopicEditTemplate setting: if I change %WIKIUSERNAME% to %MAINWEB%.%WIKINAME% I get the correct signature (i.e. ChristianKohl) in the preview - but once the topic is saved it says Main.guest. It does work with %WIKIUSERNAME% however ... .

-- ChristianKohl - 2012-05-28

Topic revision: r6 - 2003-10-03 - ChristianKohl
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.