content::item::get_content (public)

 content::item::get_content [ -revision_id revision_id ] \
    [ -item_id item_id ] -array array

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

Create a onerow datasource called content in the calling frame which contains all attributes for the revision (including inherited ones).

The datasource will contain a column called "text", representing the main content (blob) of the revision, but only if the revision has a textual mime-type.

Switches:
-revision_id (optional)
The revision whose attributes are to be retrieved
-item_id (optional)
The item_id of the corresponding item. You can provide this as an optimization. If you don't provide revision_id, you must provide item_id, and the item must have a live revision.
-array (required)
Returns:
1 on success (and set the array in the calling frame), 0 on failure
See Also:
  • proc content::item::get_content_type

Partial Call Graph (max 5 caller/called nodes):
%3 test_content_image content_image (test acs-content-repository) content::item::get_content content::item::get_content test_content_image->content::item::get_content test_content_item_nested_structure content_item_nested_structure (test acs-content-repository) test_content_item_nested_structure->content::item::get_content test_content_revision content_revision (test acs-content-repository) test_content_revision->content::item::get_content content::item::get_live_revision content::item::get_live_revision (public) content::item::get_content->content::item::get_live_revision content::item::get_revision_content content::item::get_revision_content (public) content::item::get_content->content::item::get_revision_content content::revision::item_id content::revision::item_id (public) content::item::get_content->content::revision::item_id

Testcases:
content_image, content_item_nested_structure, content_revision
[ show source ]
Show another procedure: