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 - 2026-02-21

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2003-10-03 - ChristianKohl
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.