• Are you a partner? Please find our certification tracks on our legacy Academy.

Publishing

Once you create an entry/asset and have environments in place, you can publish to them. By publishing, you get the content served in that particular environment.

Video: Publishing Content in Contentstack

The following video demonstrates how to publish content in Contentstack.

Understanding with an example

  • If you have a ‘Blog entry’ that you want to display on your website, you will need to publish it to make it available on your website. Once you publish it on a particular environment like ‘development,’ you can fetch that entry using the API on your website.

While publishing, the following options will appear:

  • The environment - You can select the environment(s) to which you want to publish the entry.

  • The language - You can select which language to publish the entry.

  • The time of publishing(Now/Later) - You can choose the time to publish the entry. If you choose ‘Now’ and proceed, the entry will be published immediately. If you choose ‘Later,’ you will be asked to select the date and time. Once you set the date and time and proceed, the entry will get published on the specific date and time.

  • With or without the references attached to the entry - When you complete selecting the above options, you will be prompted to ask to proceed with ‘With References’ or ‘Without References.’ Suppose your entry consists of any referenced entries and assets. In that case, you can select ‘With References,’ which will publish the main parent entry and its references and assets. However, you can choose and select ‘Without References,’ which will only publish the main parent entry.

CSendUserTraining_L32_img-1.png

CSendUserTraining_L32_img-2.png

Similarly, you can Unpublish the published entries and assets using the ‘Unpublish’ option in an entry and asset. When you unpublish the content, it will cease to serve the content on your website for that particular environment and language.

Potential Use Case:
  • Publishing is a feature to make content available for the presentation layers to specific environments or languages.

  • To schedule publishing and unpublishing of content for a timed Business need, like a holiday promotion banner or a new product launch notice where you need a certain content on the website for a specific duration.

Further Reading