content::item::get_publish_status (public)
content::item::get_publish_status -item_id item_id
Defined in packages/acs-content-repository/tcl/content-item-procs.tcl
Get the publish status of the item. The publish status will be one of the following:
- production - The item is still in production. The workflow (if any) is not finished, and the item has no live revision.
- ready - The item is ready for publishing
- live - The item has been published
- expired - The item has been published in the past, but its publication has expired
- Switches:
- -item_id (required)
- The item_id of the content item
- Returns:
- The publish status of the item, or the empty string on failure
- See Also:
- proc content::item::is_publishable
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- content_item_nested_structure
Source code: set publish_status [db_string gps_get_publish_status { select publish_status from cr_items where item_id = :item_id }] return $publish_statusGeneric XQL file: packages/acs-content-repository/tcl/content-item-procs.xql
PostgreSQL XQL file: packages/acs-content-repository/tcl/content-item-procs-postgresql.xql
Oracle XQL file: packages/acs-content-repository/tcl/content-item-procs-oracle.xql