The item commands allow easy access to properties of +the content_item object. In the future, a unified API for caching +item properties will be developed here.
Also see:
+item::content_is_null
item::content_methods_by_type
item::get_best_revision
item::get_content_type
item::get_extended_url
item::get_id
item::get_item_from_revision
item::get_live_revision
item::get_mime_info
item::get_publish_status
item::get_revision_content
item::get_template_id
item::get_template_url
item::get_title
item::get_url
item::is_publishable
+
+* indicates required
Public Methods:item::content_is_null | ||
+Determines if the content for the revision is null (not +mereley zero-length)
|
item::content_methods_by_type | ||||
+Determines all the valid content methods for +instantiating a content type. Possible choices are text_entry, +file_upload, no_content and xml_import. Currently, this proc merely +removes the text_entry method if the item does not have a text mime +type registered to it. In the future, a more sophisticated +mechanism will be implemented.
|
item::get_best_revision | ||
+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.
|
item::get_content_type | ||
+Retrieves the content type of tyhe item. If the item +does not exist, returns an empty string.
|
item::get_extended_url | ||||||
+Retrieves the relative URL of the item with a file +extension based on the item's mime_type (Example: { +/foo/bar/baz.html} ).
|
item::get_id | ||||
+Looks up the URL and gets the item id at that URL, if +any.
|
item::get_item_from_revision | ||
+Gets the item_id of the item to which the revision +belongs.
|
item::get_live_revision | ||
+Retrieves the live revision for the item. If the item +has no live revision, returns an empty string.
|
item::get_mime_info | ||||
+Creates a onerow datasource in the calling frame which +holds the mime_type and file_extension of the specified revision. +If the revision does not exist, does not create the +datasource.
|
item::get_publish_status | ||
+Get the publish status of the item. The publish status +will be one of the following: +
|
item::get_revision_content | ||||
+Create a onerow datasource called content in the +calling frame which contains all attributes for the revision +(including inherited ones). +
|
item::get_template_id | ||||
+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.
|
item::get_template_url | ||||
+Retrieves the relative URL of the template which can be +used to render the item. The URL is relative to the TemplateRoot as +it is specified in the ini file.
|
item::get_title | ||
+Get the title for the item. If a live revision for the +item exists, use the live revision. Otherwise, use the latest +revision.
|
item::get_url | ||
+Retrieves the relative URL stub to th item. The URL is +relative to the page root, and has no extension (Example: { +/foo/bar/baz} ).
|
item::is_publishable | ||
+Determine if the item is publishable. The item is +publishable only if: +
|
+* indicates required
+