Publishing content
Publishing content is in some ways the most important step of creating effective content. If it is not published, no one can consume the content that you’ve created. Hygraph has two Content Stages as we’ve seen before, DRAFT
and PUBLISHED
. When you have finished working on the content piece and would like to move it out of the DRAFT
stage, simply click Save and Publish or Publish.
One thing to always check is that all of the assets and references are also on PUBLISH so that everything loads properly.
You will be prompted to publish these when clicking Save and Publish if Hygraph notices relations to your content that are still in the DRAFT
stage. When content is PUBLISHED
, it will create a new version of the content so you can see how the content has evolved and when it was last updated.
If you have additional stages enabled, you will be presented with a dropdown to choose which stage you want to publish to.
Edit published contentAnchor
Once published, any content can be edited in a similar fashion to creating new content.
Simply navigate to the content piece you would like to modify, and use the content editor as before.
When changes are made to the content, you will see the “Save and Publish” button has been reactivated, allowing you to publish the changes you’ve made. If you choose to retain the changes in DRAFT
state and not publish it, you will notice that the pill for that content in the content tables has changed to blue, indicating outdated content (as mentioned earlier), implying that changes have been made on the DRAFT
stage that have not been promoted to the PUBLISHED
stage.
Outdated contentAnchor
With Hygraph it is possible to review posts that have been published beforehand, and have changes made on the DRAFT
stage.
When looking at the content view, a new blue pill indicates a previously PUBLISHED
piece of content that has been changed on the DRAFT
stage, but not been PUBLISHED
with those changes. Once reviewed and approved by the editor, clicking PUBLISH will put the new changes into a published state.
To compare the changes made on DRAFT
compared to the PUBLISHED
state, simply navigate to the available versions in the right sidebar.
Click here to learn more about content stages.