Example Publishing Setup

The following are the steps to config a typical Publishing setup (Publish and Unpublish):

Step 1: Create Projects

Create two projects

  1. Create an "Authoring" project

  2. Create a "Live" Project

Step 2 : Create a Deployment Target

Deployment Target is the endpoint where the package will be deployed or sent.

  • Go to Manage Platform

  • Go to Deployment Targets under Deployment Left Navigation Menu

  • Click on Create a Deployment Target

    Title : "Live Web Site"

    Deployment Target Type : "Branch"

[object Object]
  • Click on Next

  • For Deployment Target Configuration:

[object Object]
  • Select the Target Project which in this case is Project Live
[object Object]
  • Select the Branch of Live Project
[object Object]
  • Click on Create
[object Object]

You can set up the target endpoints as Amazon S3 bucket, FTP servers, File System or any CloudCMS branches on same cluster or some remote cluster located in another data center somewhere else in the world.

Following is an example to set-up a Deployment Target that uploads to Amazon S3 Bucket

[object Object]

Provide all the required information like the Access Key, Secret Key, Region and Bucket Name.

[object Object]

Step 3 : Enable Publishing for Authoring Project

To publish the content from Authoring project to Live Project :

  • Go to Authoring project

  • Go to Manage Project

  • Go to Publishing in the` Left Navigation Menu

  • Check Enable Publishing for this Project and Click on Update

This will automatically set up :

  1. Lifecycle States draft, live, archived states

  2. Authoring/Production preview endpoints

  3. Add the simple Workflow Models for Publish and Unpublish workflows to the project.

For more information and to configure these settings, please go through our Publishing documentation.

Step 4 : Add a Publication For Publish

This will tell the system that whenever content on “master” branch of Authoring project goes to Live state, it should
be pushed to the Live Website target deployment i.e the Live Project.

  • In the Authoring Project, go to Manage Project and select Publishing and then Publications

  • Click on Add a Publication

    Branch : Select the Master Branch of the Authoring Project

    State : live

    Operation: Deploy

    Deployment Targets : Select Live Website Deployment Target

  • Click on Add Publication

[object Object]

Step 5 : Add a Publication For Unpublish

This will tell the system that whenever content on “master” branch of Authoring project goes to Archive state , it
should be delete from the Live Website target deployment i.e the Live Project.

  • In the Authoring Project, go to Manage Project and select Publishing and then Publications

  • Click on Add a Publication

    Branch : Select the Master Branch of the Authoring Project

    State : archived

    Operation: Undeploy

    Deployment Targets : Select Live Website Deployment Target

  • Click on Add Publication

[object Object]

Publishing Content from Authoring Project to the Live Project

Follow all the above steps to set-up Publishing for Authoring Project:

  • Go back to the "Authoring" Project

  • Create a piece of content. For example, Article 1 of Content Type Article

[object Object]
  • Click on the Content Article1

You will now see a sub-header section which lets you Preview the content on the Authoring Preview Endpoint
and change the content's lifecycle state from draft to live with the 'Publish' button.

[object Object]
  • To Publish the content to the Live Project, Click on Publish.

    This will start a Publish workflow, you can then add a comment and deploy the content to Live Project and change
    the Content Lifecycle State to live.

    Once you click on Publish, in the sub-header you are able to Preview the content on Production Preview Endpoint and
    you are able to Edit or Unpublish the Content.

[object Object]
  • To verify the content has been deployed to Live Project, Go to Live Project, Go to content 'Article 1' and verify the
    content has been deployed.
[object Object]

Unpublish Content from the Live Project

Follow all the above steps to set-up Publishing and Unpublish for Authoring Project:

  • Go back to the "Authoring" Project

  • Open a piece of content previously Published (in a Live state). For example, Article 1 of Content Type Article

[object Object]
  • To Unpublish the content from the Live Project, Click on Unpublish.

    This will start a Unpublish workflow and delete the content from Live Project and change the Content Lifecycle State to archived.

[object Object]
  • To verify the content has been removed from Live Project, Go to Live Project, and you will see that the content has been removed