content::item::publish (public)

 content::item::publish -item_id item_id [ -revision_id revision_id ]

Defined in packages/acs-content-repository/tcl/content-item-procs.tcl

Publish a content item. Updates the live_revision and publish_date attributes, and sets publish_status to live.

Switches:
-item_id (required)
The id of the content item
-revision_id (optional)
The id of the revision to publish. Defaults to the latest revision.
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 content::item::get_latest_revision content::item::get_latest_revision (public) content::item::set_live_revision content::item::set_live_revision (public) content::item::publish content::item::publish content::item::publish->content::item::get_latest_revision content::item::publish->content::item::set_live_revision

Testcases:
No testcase defined.
Source code:
    if { $revision_id eq "" } {
      set revision_id [::content::item::get_latest_revision -item_id $item_id]
    }
    ::content::item::set_live_revision -revision_id $revision_id -publish_status "live"
Generic 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

[ hide source ] | [ make this the default ]
Show another procedure: