Tags:
admin_tool1Add my vote for this tag template_system1Add my vote for this tag create new tag
view all tags

MovedSkin

Inform users that a TWiki site has moved to a new location

Overview

Sometimes a TWiki site is migrated to a new location with a new URL. For convenience users visiting the old site should find the new site. When this skin is installed and enabled at the old TWiki site, users will see a yellow moved message box instead of page content. A configurable MOVEDMESSAGE is set to inform users of the new location.

For scheduled downtime & temporary maintenance it is better to use the read-only skin mode of the TopMenuSkin or PatternSkin instead of this MovedSkin. For this, define a BROADCASTMESSAGE setting and a Set READONLYSKINMODE = 1 setting in Main.TWikiPreferences.

Screenshot

Click for full screen image

Installation

Note: You do not need to install anything in the browser to use this skin. The following instructions are for the administrator who installs the skin on the TWiki server.

  • For an automated installation, run the configure script, follow "Find More Extensions" in the in the Extensions section, and look for the MovedSkin.

  • Or, follow these manual installation steps:
    • Download the ZIP file from the Plugins home (see below).
    • Unzip MovedSkin.zip in your twiki installation directory. Content:
      File: Description:
      data/TWiki/MovedSkin.txt Skin topic
      pub/TWiki/MovedSkin/*.png Screenshots
      templates/view.moved.tmpl Skin template file
      lib/TWiki/Contrib/MovedSkin.pm Skin Perl module
    • Set the ownership of the extracted directories and files to the webserver user.

Enabling Moved Message

1. Define a MOVEDMESSAGE setting in Main.TWikiPreferences so that the moved message takes effect site-wide. Example:

  * Set MOVEDMESSAGE = __NOTE:__ The %WIKITOOLNAME% site has been moved to a new location. The page you are trying to access is now at: %BR%%BR% http://twiki.example.com/do/view/%WEB%/%TOPIC%. %BR% Please update your bookmarks. %BR%%BR% Questions? Ask %WIKIWEBMASTER%

The view/%WEB%/%TOPIC% makes sure that the user ends up the new location of the current page.

If you want the page to redirect automatically to the new site you can add a meta tag to the MOVEDMESSAGE setting. This example redirects after 5 seconds:

<meta http-equiv="refresh" content="5;url=http://twiki.example.com/do/view/%WEB%/%TOPIC%" />

2. Test the yellow moved message box:
https://twiki.org/cgi-bin/view/Plugins/MovedSkin?skin=moved.

3. Active the skin site-wide by changing the SKIN setting in Main.TWikiPreferences:

  * Set SKIN = moved

TWikiSkins has details on skin activation.

Skin Info

Skin Author: TWiki:Main.PeterThoeny
Copyright: © 2012 Wave Systems Corp.
© 2012-2021 TWiki:Main.PeterThoeny, TWiki.org
© 2012-2021 TWiki:TWiki.TWikiContributor
Sponsor: Wave Systems Corp.
License: GPL (GNU General Public License)
Description: Inform users that a TWiki site has moved to a new location
Screenshot: Click for full screen image
Preview: Preview with this topic
Base Name: moved
Skin Version: 2021-03-19
Change History:
2021-03-19: TWikibug:Item7927: Copyright update to 2021
2018-07-05: TWikibug:Item7841: Copyright update to 2018
2016-01-09: TWikibug:Item7708: Copyright update to 2016
2012-12-16: TWikibug:Item7085: Initial version
Dependencies: None
Skin Home: http://TWiki.org/cgi-bin/view/Plugins/MovedSkin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/MovedSkinDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/MovedSkinAppraisal

Related topic: TWikiSkins, TWikiSkinBrowser, UserDocumentationCategory, AdminDocumentationCategory

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatmd5 MovedSkin.md5 r5 r4 r3 r2 r1 manage 0.1 K 2021-03-20 - 02:46 PeterThoeny  
Compressed Zip archivetgz MovedSkin.tgz r5 r4 r3 r2 r1 manage 85.4 K 2021-03-20 - 02:46 PeterThoeny  
Compressed Zip archivezip MovedSkin.zip r5 r4 r3 r2 r1 manage 87.2 K 2021-03-20 - 02:46 PeterThoeny  
Unknown file formatext MovedSkin_installer r3 r2 r1 manage 3.5 K 2021-03-20 - 02:46 PeterThoeny  
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2021-03-20 - PeterThoeny
 
  • 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.