%TOC{title="Page contents"}%
%SHORTDESCRIPTION%
---++ 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 [[%LOCALSITEPREFS%]].
---++ Screenshot
%SEARCH{ "%TOPIC%" scope="topic" nosearch="on" nototal="on" format="$pattern(.*\| *Screenshot\:[^\|]*\|([^\|]*).*)" }%
---++ 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 [[%SCRIPTURL{configure}%][configure]] script, follow "Find More Extensions" in the in the __Extensions__ section, and look for the !MovedSkin.
* See the [[http://twiki.org/cgi-bin/view/Plugins/BuildContribInstallationSupplement][installation supplement]] on TWiki.org for more information.
* Or, follow these __manual installation__ steps:
* Download the ZIP file from the Plugins home (see below).
* Unzip ==%TOPIC%.zip== in your twiki installation directory. Content:
| *File:* | *Description:* |
| ==data/TWiki/%TOPIC%.txt== | Skin topic |
| ==pub/TWiki/%TOPIC%/*.png== | Screenshots |
| ==templates/view.moved.tmpl== | Skin template file |
| ==lib/TWiki/Contrib/%TOPIC%.pm== | Skin Perl module |
* Set the ownership of the extracted directories and files to the webserver user.
* Skin __testing__:
* Test if installed: %SCRIPTURL{view}%/%WEB%/%TOPIC%?skin=moved.
---++ Enabling Moved Message
1. Define a MOVEDMESSAGE setting in [[%LOCALSITEPREFS%]] so that the moved message takes effect site-wide. Example:
=