content::item::get_best_revision (public)

 content::item::get_best_revision -item_id item_id

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

Attempts to retrieve the live revision for the item. If no live revision exists, attempts to retrieve the latest revision. If the item has no revisions, returns an empty string.

Switches:
-item_id (required)
The item_id of the content item
Returns:
The best revision_id for the item, or an empty string if no revisions exist
See Also:

Testcases:
cr_item_search_triggers
[ show source ]
Show another procedure: