eZ Community » Learn » eZ Publish » Managing Versions with eZ Publish

Managing Versions with eZ Publish

Friday 17 August 2007 3:00:00 pm

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

We now present a brief overview of what you can and cannot do to a version, depending on its status. This is not exhaustive and does not cover all exceptions, but it gives a good overview of the most common actions and is intended to clarify as well as identify common user errors. As a rule of thumb, a version can only be edited if it is a draft and it can only be edited by the same user who initially created it.

Status

Allowed actions

Disallowed actions

Draft
  • can be edited (by the same user who initially created it)
  • can be published (the previous published version will become archived)
  • can be deleted / discarded
  • can be stored for later
  • will keep status if object is removed
  • cannot be archived (without first being published)
Published
  • can be copied, becoming a new draft
  • can become archived when a more recent version is published
  • will keep status if object is removed
  • cannot be edited
  • cannot become a draft
Archived
  • can be copied, becoming a new draft
  • will keep status if object is removed
  • cannot be edited

When a new object is created, eZ Publish creates a new draft version. Because the object has not been published yet, its status is set to "Draft" and the current version of the object is unknown. Storing the draft will not change the status of the object. The contents of the draft are simply stored in version 1. The draft version becomes available on the My drafts page and is listed as "Status: Draft" when the version is previewed.

When the draft version is published, both the version and the object status are set to "Published". In addition, the object's current version is set to "1", which indicates the published version of the object. When published, the contents of the object can be viewed by others. Note that up until this point, the contents of the object were not visible on the public site.

36 542 Users on board!

Tutorial menu

Printable

Printer Friendly version of the full article on one page with plain styles

Author(s)

Proudly Developed with from