Search code examples
sitecoresitecore8

How to publish all versions of an item to Web DB (Sitecore 8.0+)


The end result: After publishing an item, all versions will be visible in the WEB DB, instead of the default behaviour of only having the latest item version.

I'm using Sitecore 8.2.170407

After reading this article, I tried to do several things:

  • Remove both RemoveOtherVersions and PublishTestingVersions processors by doing a <patch:delete />. That did not work
  • Add my own patch file, which inherits Sitecore.Publishing.Pipelines.PublishVersion.Processors.RemoveOtherVersions and hides/overrides the base Process method. The new method will do nothing. Image of patch class and Image of patch config That didn't work either.
  • Tried removing the whole <publishVersion> pipeline, but that gave an exception when trying to publish an item.

I've not been able to find a solutions anywhere else. I know a similar question has been asked here, but that was in Sitecore 6

Have any of you been in the same situation before? How did you solve the issue?

If you need more information, please let me know.

Thanks in advance


Solution

  • You can't.

    The linked answer you provide is still valid. Sitecore "web" database (any database which is a publishing target) stores one and only one version. To modify this, you're going to need to reinvent your own publishing process.