Friday 17 August 2007 6:00:00 am
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 |
|
|
Published |
|
|
Archived |
|
|
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.