LibrarySites.Banner

Related Item Publishing Updated

Related Item Publishing is another frequently requested feature which was ‘partially present’ in pre-7.2 versions with the implementation buried in one of the publish pipeline processor. By ‘partially present’ I mean that only FileDropAreaField links and Cloning relationships were added to the publish item pipeline.

First off, now this feature is extracted into a designated getItemReferences pipeline, ready for extension.

Secondly, out of the box, the list of references is extended. Now referring aliases and all content and media references of the currently processed publishing candidates are being added to the publish queue:


<getitemreferences>
   <processor type="Sitecore.Publishing.Pipelines.GetItemReferences.AddItemCloneReferences, Sitecore.Kernel"/>
   <processor type="Sitecore.Publishing.Pipelines.GetItemReferences.AddFileDropAreaMediaReferences, Sitecore.Kernel"/>
  
   <!-- NEW -->
   <processor type="Sitecore.Publishing.Pipelines.GetItemReferences.AddItemLinkReferences, Sitecore.Kernel"/>
   <processor type="Sitecore.Publishing.Pipelines.GetItemReferences.AddItemAliasReferences, Sitecore.Kernel"/>
</getitemreferences>

This obviously means that the number of items added to the queue will increase dramatically, something to be aware of.

This feature is designed to be used only in Single Item publish mode, which will also work when you publish from workflow or Page Editor, the use case when it is very important to pull in all items the currently published item is referencing in order for a particular page to be fully published.

Finally, we are planning some further optimization of this process, which will result in fewer items being added as references during publishing. Hopefully in Update-1 for 7.2.

Good day now.

Sitecore 7.2 Dev Team