Added by Jasha Joachimsthal, last edited by Bart van der Schans on Jan 07, 2008  (view change)

Labels:

bulk bulk Delete
publish publish Delete
wdbp wdbp Delete
tool tool Delete
plugin plugin Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Description

You can bulk publish all your content with the PublishAll WDBP Plugin" plugin. Basically this is a combination of the RepositoryCopy and SetProperties plugins, conveniently merged into one single plugin. What the plugin does is the following:

  1. copy documents from the preview repository to the live repository
  2. set the publication date property for each document to the current date

Usage

The PublishAll plugin can be built and run just like any other WDBP plugin.

The publicationDate.format property is a java SimpleDateFormat.

A sample properties file:

# The source location. Path can either be a folder or a file.
location.host=localhost
location.port=60000
location.rootpath=/default
location.path=/files/default.preview/content

# authentication of the source location
authentication.username=root
authentication.password=password

plugin.1.classname=nl.hippo.webdav.batchprocessor.plugins.PublishAll
plugin.1.configuration.publicationdate.format=yyyyMMddHHmm

# publish only already published docs or all
plugin.1.configuration.onlypublished=false

# The destination location. Path can either be a folder or a file.
plugin.1.configuration.destination.location.path=/files/default.www/content

# authentication of the destination location
plugin.1.configuration.destination.authentication.username=root
plugin.1.configuration.destination.authentication.password=password

Notes

  • Keep in mind that there may be files you don't want to have published if the batch processing plugins do their work.
  • If you use HippoCMS 6.03.05 or up, be sure that the publicationDate value is after than the modificationdate/time. Otherwise the status icons will display that the documents have been modified after publication.
  • The onlypublished option is only available from version 1.01.01. It can be use to only republish documents that already have been publish in the past.