Disable wiki page versioning 

By default users can see all of the versions of a wiki page. You can disable versioning in the wikis-config.xml properties file.


Before starting

To edit configuration files, use the IBM WAS wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.


About this task

Disabling versioning can help control the size of data storage. When you disable versioning before users start using Wikis, only one version of a page is ever stored, and all updates are reflected in that version.

However, you can disable versioning at any time. If there are already multiple versions of a page when you disable versioning, the latest version becomes the "active" version, and all future updates are reflected in that version. The older versions are hidden from the user interface, but still exist and take up space in the database. If a user reaches their space quota, you can delete these older versions by enabling versioning again and having the user open the file page, click the Versions tab, and delete versions.

You can also perform a manual database update to remove all versions of files prior to the current ones. You would execute a delete statement on your database for the MEDIA_REVISION table, but specify a constraint that the column IS_CURRENT_REVISION = 0, as a record still exists for the current version.

Remember that in Wikis file attachments, which are not versioned, take up the most space. Only pages are versioned. So depending on your environment you may not need to disable versioning at all.


Procedure

  1. Start the wsadmin client.

  2. Start the Wikis Jython script interpreter.

    1. Access the Wikis configuration files:

        execfile("wikisAdmin.py")

        If you are asked to select a server, you can select any server.

    2. Check out the Wikis configuration files using the following command:

        WikisConfigService.checkOutConfig("<working_directory>", "<cell_name>")

        where:

        • <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied. The files are kept in this working directory while you make changes to them.

            Note: AIX and Linux™ only: The directory must grant write permissions or the command will not run successfully.

        • <cell_name> is the name of the WAS cell hosting the IBM Connections application. This argument is required. If you do not know the cell name, you can determine it by typing the following command in the wsadmin command processor:

            print AdminControl.getCell()

        For example:

        WikisConfigService.checkOutConfig("/opt/my_temp_dir", "CommServerNode01Cell")

  3. Optional: To view the current configuration settings use the following command:

      WikisConfigService.showConfig()

  4. To set the file.versioning.enabled property to false, use the following command:

      WikisConfigService.updateConfig("file.versioning.enabled", "false")

  5. You must check the configuration files back in after making changes, and they must be checked in during the same wsadmin session in which they were checked out for the changes to take effect. See the topic Apply Wikis property changes for details.


Parent topic

Administer Wikis


Related tasks


Starting the wsadmin client
Apply Wikis property changes


   

 

});

+

Search Tips   |   Advanced Search