http://plone.org/documentation/howto/HowToAddAWiki lists some steps to add Wikis containing the default pages to your Plone site. However, this can be made more convenient by adding a new portal type for Wiki folders. This allows you to create prepopulated Wiki folders the same way you are creating ordinary folders.

To add the new portal type, put the following script named PloneWiki.py in the directory Extensions of your ZWiki product:

   from Products.ZWiki.CMFInit import addWikiPage

   def addWikiFolder(self, id):
       # Create a regular plone folder
       self.invokeFactory(type_name = 'Folder', id = id)
       wiki = getattr(self, id)

       # Populate the folder with the default pages
       addWikiPage(wiki, 'dummy')
       wiki.dummy.setupPages()
       wiki.manage_delObjects('dummy')

       return wiki

Then go to the portal_types folder of your Plone site and add the following External method:

In addition, add the following Scriptable Type Information:

Edit the newly created type information and set the following properties:

Leave the rest untouched and save the changes. Finally, go to portal_types/site_properties and add Wiki Folder to the property use_folder_tabs and save the changes. That's it. [1]

Now you can add new Wikis by clicking on add item and selecting wiki folder--and maybe publishing the folder, so that other users will see it in the navigation slot.

--Andreas

[1] These instructions are shamelessly cribbed from the PrePopulatedFolder? Howto at Plone.org and adapted to the problem at hand. :-)

See also Zwiki and Plone.


comments:

Plone2 -- Fri, 08 Oct 2004 03:09:30 -0700 reply
In plone2, you just need to install zwiki from plone's control panel.

Plone2 -- Tue, 12 Apr 2005 01:12:25 -0700 reply
Plone 2 still doesn't allow you to add a ZWiki folder

Zwiki.PloneWiki? does not exist. -- Mon, 05 Sep 2005 21:18:48 -0700 reply
The instructions don't work gives the following error message. "The specified module, ZWiki.PloneWiki?, couldn't be found. (Also, an error occurred while attempting to render the standard error message.)"