SID-02367: Making a Web readonly
| Status: |
Answered |
TWiki version: |
4.2.0 |
Perl version: |
5.8.8 |
| Category: |
CategoryAccessControl |
Server OS: |
OpenSuse Linux 2.6.22 |
Last update: |
7 years ago |
After upgrading wiki to a newer version I want to keep the old one alive but make it readonly. I already read
http://twiki.org/cgi-bin/view/TWiki/ReadOnlyAndMirrorWebs
but I have trouble setting things up.
What exactly is meant by =Setting the site's identifier (a few character long alpha-numeric string) to $TWiki::cfg{ReadOnlyAndMirrorWebs}{SiteName} enables this feature. = and how do I do it?
I also did
Set MASTERSITENAME=ro in the
WebPreferences of my Web
--
Michael Werber - 2018-08-03
Discussion and Answer
The
ReadOnlyAndMirrorWebs doc applies to multi-site installation in conjunction with
MetadataRepository.
To lock down the webs of your old TWiki installation simply go to each web's
WebPreferences, and restrict access to it, for example with a
Set ALLOWWEBCHANGE = TWikiAdminGroup bullet.
--
Peter Thoeny - 2018-08-03
This worked well for me, thanks a lot.
Is there also a way to change the text of the access-denied-page? Would be great to show a link to the new Twiki
--
Michael Werber - 2018-08-03
The access-denied page can be changed by modifying the template that is used to create the access-denied page. I think the one you're interested in
oopsaccessdenied.tmpl which is found in a templates directory in your twiki installation directory
(/somewhere/twiki/templates). This template pulls the message from
messages.tmpl (located in the same folder).
I think the template definition (
TMPL:DEF) that you want to modify in
messages.tmpl will be
TMPL:DEF{"topic_access"}.
--
Jani Hamalainen - 2019-03-15
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.