| Publicity: |
|---|
| [Public Only | All] |
Tcl API for cr_items in the content repository
- Location:
- packages/acs-content-repository/tcl/content-item-procs.tcl
- Created:
- 2004-05-28
- Authors:
- Dave Bauer <dave@thedesignexperience.org>
- Jun Yamog
- CVS Identification:
$Id: content-item-procs.tcl,v 1.21 2008/12/17 19:35:26 gustafn Exp $
content::item::content_type (public)content::item::content_type -item_id item_id
|
content::item::copy (public)content::item::copy -item_id item_id \
-target_folder_id target_folder_id \
[ -creation_user creation_user ] [ -creation_ip creation_ip ] \
[ -name name ]
|
content::item::delete (public)content::item::delete -item_id item_id
|
content::item::get (public)content::item::get -item_id item_id [ -revision revision ] \
[ -array_name array_name ]
|
content::item::get_best_revision (public)content::item::get_best_revision -item_id item_id 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. |
content::item::get_content_type (public)content::item::get_content_type -item_id item_id Retrieves the content type of the item. If the item does not exist, returns an empty string. |
content::item::get_context (public)content::item::get_context -item_id item_id
|
content::item::get_id (public)content::item::get_id -item_path item_path \
[ -root_folder_id root_folder_id ] \
[ -resolve_index resolve_index ]
Looks up the item_path starting with the root folder and returns item_id for that content item or empty, if none exists |
content::item::get_id_by_name (public)content::item::get_id_by_name -name name -parent_id parent_id Returns The item_id of the a content item with the passed in name |
content::item::get_latest_revision (public)content::item::get_latest_revision -item_id item_id Retrieves the latest revision for the item. If the item has no live revision, returns an empty string. |
content::item::get_live_revision (public)content::item::get_live_revision -item_id item_id Retrieves the live revision for the item. If the item has no live revision, returns an empty string. |
content::item::get_parent_folder (public)content::item::get_parent_folder -item_id item_id
|
content::item::get_path (public)content::item::get_path -item_id item_id \
[ -root_folder_id root_folder_id ]
|
content::item::get_publish_date (public)content::item::get_publish_date -item_id item_id [ -is_live is_live ]
|
content::item::get_publish_status (public)content::item::get_publish_status -item_id item_id Get the publish status of the item. The publish status will be one of the following: |
content::item::get_revision_count (public)content::item::get_revision_count -item_id item_id
|
content::item::get_root_folder (public)content::item::get_root_folder [ -item_id item_id ]
|
content::item::get_template (public)content::item::get_template -item_id item_id -use_context use_context Retrieves the template which can be used to render the item. If there is a template registered directly to the item, returns the id of that template. Otherwise, returns the id of the default template registered to the item's content_type. Returns an empty string on failure. |
content::item::get_title (public)content::item::get_title -item_id item_id [ -is_live is_live ] Get the title for the item. If a live revision for the item exists, use the live revision. Otherwise, use the latest revision. |
content::item::get_virtual_path (public)content::item::get_virtual_path -item_id item_id \
[ -root_folder_id root_folder_id ]
Retrieves the relative path to the item. The path is relative to the page root, and has no extension (Example: "/foo/bar/baz"). |
content::item::is_index_page (public)content::item::is_index_page -item_id item_id -folder_id folder_id
|
content::item::is_publishable (public)content::item::is_publishable -item_id item_id Determine if the item is publishable. The item is publishable only if: |
content::item::is_published (public)content::item::is_published -item_id item_id
|
content::item::is_subclass (public)content::item::is_subclass -object_type object_type \
-supertype supertype
|
content::item::is_valid_child (public)content::item::is_valid_child -item_id item_id \
-content_type content_type [ -relation_tag relation_tag ]
|
content::item::move (public)content::item::move -item_id item_id \
-target_folder_id target_folder_id [ -name name ]
|
content::item::new (public)content::item::new -name name [ -parent_id parent_id ] \
[ -item_id item_id ] [ -locale locale ] \
[ -creation_date creation_date ] [ -creation_user creation_user ] \
[ -context_id context_id ] [ -package_id package_id ] \
[ -creation_ip creation_ip ] [ -item_subtype item_subtype ] \
[ -content_type content_type ] [ -title title ] \
[ -description description ] [ -mime_type mime_type ] \
[ -nls_language nls_language ] [ -text text ] [ -data data ] \
[ -relation_tag relation_tag ] [ -is_live is_live ] \
[ -storage_type storage_type ] [ -attributes attributes ] \
[ -tmp_filename tmp_filename ]
|
content::item::register_template (public)content::item::register_template -item_id item_id \
-template_id template_id -use_context use_context
|
content::item::relate (public)content::item::relate -item_id item_id -object_id object_id \
[ -relation_tag relation_tag ] [ -order_n order_n ] \
[ -relation_type relation_type ]
|
content::item::rename (public)content::item::rename -item_id item_id -name name
|
content::item::set_live_revision (public)content::item::set_live_revision -revision_id revision_id \
[ -publish_status publish_status ]
|
content::item::set_release_period (public)content::item::set_release_period -item_id item_id \
[ -start_when start_when ] [ -end_when end_when ]
|
content::item::unregister_template (public)content::item::unregister_template -item_id item_id \
[ -template_id template_id ] [ -use_context use_context ]
|
content::item::unrelate (public)content::item::unrelate -rel_id rel_id
|
content::item::unset_live_revision (public)content::item::unset_live_revision -item_id item_id
|
content::item::update (public)content::item::update -item_id item_id -attributes attributes Update standard non-versioned content item attributes (cr_items) Valid attributes: name parent_id latest_revision live_revision locale publish_status |
content::item::upload_file (public)content::item::upload_file -upload_file upload_file \
-parent_id parent_id [ -package_id package_id ]
Store the file uploaded under the parent_id if a file was uploaded |