PublishBeforeCompare plugin
If the Differences from version contains a version number for a Publish operation, you can configure plugins so they are called for every file either in the current, the compare folder or both before the IPublishCompare is called.
Introduction
When Content Manager publishes a publication that needs to be compared, the content files (topics, images, etc.) and their metadata of the two versions are saved to the file system by the publish export process, resulting in two version folders under the export folder: one with the current version content and one with the compare version content. In order to do some processing before the IPublishCompare plugin is called, you can configure a sequence of IPublishPostProcessPlugin plugins that run on the current version, the compare version, or both. In order to avoid running the same plugins after the IPublishCompare has run, you can set a condition ISHCompare='FALSE'.
The plugin can be configured in Organize Space in the and is executed by the Publish background task.
Part of XML settings for Publish Plug-ins
...
<postprocess ishcondition="ISHOutputFormat.FDITAOTTRANSTYPE in ('ishpdf', 'pdf2')">
<beforecompare ishcondition="ISHOutputFormat.FDITAOTTRANSTYPE in ('ishpdf')">
<currentversion>
<sequence>
<pluginreference name="ISHREMOVENOTLOCKEDNAVTITLES"/>
<pluginreference name="ISHCHECKREFERENCES"/>
</sequence>
</currentversion>
<compareversion>
<sequence>
<pluginreference name="ISHREMOVENOTLOCKEDNAVTITLES"/>
<pluginreference name="ISHCHECKREFERENCES"/>
</sequence>
</compareversion>
</beforecompare>
<compare handler="IshPublishCompare" ishcondition="ISHOutputFormat.FDITAOTTRANSTYPE in ('ishpdf')">
<parameters />
</compare>
<combinelanguages handler="IshPublishCombineLanguages">
<parameters/>
</combinelanguages>
<sequence>
<pluginreference name="ISHREMOVENOTLOCKEDNAVTITLES" ishcondition="ISHCompare='FALSE'/>
<pluginreference name="ISHCHECKREFERENCES" ishcondition="ISHCompare='FALSE'">
...