Sitecore Experience Platform

Publishing items to a preview publishing target

Abstract

If you need to publish an item before it reaches the final workflow state, you can publish it to a preview publishing target.

By default, items that are in a workflow can only be published if the items are in the final workflow state. However, in situations where you need to publish an item before it reaches the final workflow state, for example, if you want the item to be reviewed by a non-Sitecore user, you can publish the item to a preview publishing target.

A preview publishing target is a publishing target that you can assign to one or more workflow states to allow items in that workflow state to be published. When you publish to a preview publishing target, all items that are in a workflow state with this preview publishing target assigned, and all items that are in a final workflow state of any workflow, are published.

In this way, items that are not in the final workflow state (and therefore cannot be published) can be published to an internal site for review or they can be published to a secure site with early release material that only certain partners or customers can access.

This walkthrough outlines how to:

To create a preview publishing target:

  1. In the Content Editor, in the content tree, navigate to System/Publishing Targets.

  2. Create a new publishing target, on the Folder tab, in the Options section, click Publishing targettarget.

    50E99E43079D47BF89267B56D79A7910.png
  3. In the system dialog box that appears, enter the name of the preview publishing target and click OK.

  4. On the Content tab for the new publishing target, enter the name of your target database and select the Preview publishing target check box.

    Important

    Make sure that the name of the target database is entered correctly to avoid getting an error when you try to publish to the preview publishing target.

    F3CF9F10943641A0B886E1D6D628ADB7.png
  5. Click Save.

To allow items in a workflow state to be published to a preview publishing target:

  1. In the Content Editor, in the content tree, navigate to System/Workflows, and then select the workflow state that you want to assign a preview publishing target to.

  2. In the Data section, select one or more preview publishing targets to assign to this workflow state. The list contains only the publishing targets that are specified as preview publishing targets.

    3B1D306588FD49C9AEA12C80E203C42D.png
  3. Click Save.

    Now the items that are in a workflow state with the preview publishing target assigned appear with a notification to let you know which preview publishing targets the specific item can be published to.

    B0C91618CD2848F3919EA0A0AE0E79B7.png

    Note

    When you publish to a preview publishing target, any publishing restrictions that are set up on the items are still valid.