Tags:
create new tag
view all tags

SID-02367: Making a Web readonly

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Making a Web readonly
SupportCategory CategoryAccessControl
TWiki version 4.2.0
Server OS OpenSuse Linux 2.6.22
Web server Apache 2.24
Perl version 5.8.8
Browser & version

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2019-03-15 - JaniHamalainen
 
  • 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.